Re: Any Way to Force an Idle Handler System Call? (Redux)
Re: Any Way to Force an Idle Handler System Call? (Redux)
- Subject: Re: Any Way to Force an Idle Handler System Call? (Redux)
- From: Ted Wrigley <email@hidden>
- Date: Sun, 08 Jun 2014 08:06:40 -0700
On Jun 8, 2014, at 3:33 AM, S. J. Cunningham wrote: The problem is I can't figure out how to "simply quit the app"... hence the question. If the app is snoozing in the idle state, it can't quit itself. Nor, apparently can an external app tell it to quit. The only way I have been able to figure out how to do it is
do shell script "killall applet"
Ugly, but it works. Raises the question as to what will happen if another "applet" is running somewhere :)
There’s no need to resort to killall. Call the script app from another script and ask it to quit.
tell application "script app" quit end tell
Or if for some reason you need to do this from the command line, use:
osascript -e 'tell application "script app" to quit'
This should work immediately, unless you have a quit handler installed without a continue statement, or a dialog open that doesn’t auto-close, or the script app has frozen over some bad code. There may be a couple of other possibilities as well (e.g. permissions), but you haven’t really explained your setup aside from saying that it works off an email notification. can you be more specific about what happens in your workflow, and maybe post the code of your script? |
_______________________________________________
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