Re: Tell Blocks Considered Harmful (was Re: open for access)
Re: Tell Blocks Considered Harmful (was Re: open for access)
- Subject: Re: Tell Blocks Considered Harmful (was Re: open for access)
- From: Chris Page <email@hidden>
- Date: Wed, 17 Dec 2008 21:12:59 -0800
On Dec 17, 2008, at 1:56 PM, Ed Stockly wrote:
Add a floating palette to the mix with the buttons needed to pause
or cancel the script?
Yes, something along those lines.
Run the dialog in a new process that would send an AppleEvent back
to the original script when the user clicked "Cancel Script".
You can send Apple Events to application processes, but there's no
means to target a script running within that process. We might be able
to do something in the applet code, since it knows it's running a
single script, but for arbitrary scripts running inside other
programs, the application would probably have to handle the incoming
event and figure out which script “owned the computer” and arrange to
stop it.
In any case, it may be doable, but it's not trivial.
--
Chris Page
The other, other AppleScript Chris
_______________________________________________
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