Hi,
I am on Script Debugger running a script that opens Script Editor, places the source of a script inside a document and tries to save it as an application.
If I use the ‘save’ command, the script will be saved but it won’t run because even if I give it accessibility permissions, it says it does not have permission.
If I use the Script Editor GUI, the script will be saved and it will run when I give it permissions to do so in the accessibility settings.
So I’m stuck with scripting the GUI. And I was going well until I had to dismiss the sheet of the save dialog that allows me to input the full path to the new file.
I have tried the sheet commands, clicking the single row that is displayed in the bottom table, keystroke in the text field, and that was it. It does not dismiss. The script ends and focus is returned to Script Debugger from where the script was launched. Tried launching the script from the finder but same results.
I also tried using script debugger itself to do the work, but it crashes.
Is there some way to do this ?
Edit:
I linked the sources of the three scripts involved.
appletgenerator.scpt
openinchrome.scpt
openinsafari.scpt
Thanks,
Regards
