Applescript to quit an application

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Applescript to quit an application 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,
Carmelo Labadie
 
Posts: 2
Joined: Fri Jul 02, 2021 4:10 am

Re: Applescript to quit an application 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.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support