Re: Exiting an app with an infinite loop?
Re: Exiting an app with an infinite loop?
- Subject: Re: Exiting an app with an infinite loop?
- From: Shane Stanley <email@hidden>
- Date: Mon, 29 Aug 2016 09:19:47 +1000
On 29 Aug 2016, at 8:03 AM, Barry Wainwright <email@hidden> wrote:
Would an ‘on idle’ handler be better here than a repeat?
Yep.
on idle tell application "System Events" to set myApp to first process where it is frontmost tell application "MyAppGoesHere" activate -- Magic Happens Here end tell tell application "System Events" to set frontmost of myApp to true return 600 end idle
on quit continue quit error number -128 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