Page 1 of 1

Applescript to quit an application

PostPosted: Fri Jul 02, 2021 4:21 am
by Carmelo Labadie
I have a very simple Applescript written and saved as an application to quit GoodSync, a syncing program. When I run the script from within applescript the application quits. When I run the application as a stand alone it fires but does not quit the application.



any ideas?



tell application "GoodSync"


quit

end tell



The applicaton does not ask to save anything on quit.

I have used automator to the same end and it works as a stand alone application.



Eager to learn,

Thanks in advance,

Re: Applescript to quit an application

PostPosted: Fri Jul 02, 2021 10:21 am
by Mr_Noodle
Please check the chapter in the help on AppleScript. You need to put your script into an appropriate handler to use it with Hazel.