Change the way an applescript is generated
Opened this issue · 0 comments
ninest commented
Currently, an applescript is generated as a string. Nothing too complex to it. The problem is that it's easy to miss out a space here or there
self.applescript = f"display dialog {quotify(text)} "
# Notice the space at the end
It may be better to do something like
self.applescript = ["display dialog", quotify(text)]
...
# Adding title
self.applescript.extend(["with title", quotify(title)])
Then using a loop, create the applescript and appropriately put spaces