How to make an app quit
How to make an app quit
- Subject: How to make an app quit
- From: Gil Dawson via AppleScript-Users <email@hidden>
- Date: Wed, 21 Oct 2020 15:39:29 -0700
Hi--
I made an app to check some stuff. Once it was working, I made a few changes
so that it would run every minute, then saved it as an app.
It works fine, EXCEPT that it won't quit when I tell it to Quit. (But Force
Quit works.)
Below is a skeleton of my code. Is this enough to figure out what I'm missing?
--Gil
property Done : false
repeat until Done
try
# tell...
# if (X) then error...
# The "--" lines allow me to ⌘R this script for testing.
-- return
delay 60 -- not used when testing
on error errm number errn
-- log "Error: " & errm & " (" & errn & ")"
-- return
end try
end repeat
on quit
set Done to true
continue quit
end quit
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden