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: Tue, 16 Dec 2008 15:48:59 -0800
On Dec 16, 2008, at 10:36 AM, Ed Stockly wrote:
Maybe I'm missing the point here, but here's what I do when I want the Dialog to be the frontmost window.
tell application "System Events" activate display dialog "Folders are not allowed!" buttons {"OK"} end tell
I see no problem with that. As I understand it, that would be verbotten under Chris' proposed model.
I'm suggesting that we could change the behavior so that ‘display dialog’ would ignore the ‘tell’ and be handled within the application running the script. (In the case of a script applet, the applet is the application running the script.)
But that is separate from where the dialog appears. It could still appear in front of the frontmost application, but not block user interaction with that application. The question is: Do you have scripts for which blocking user interaction with the frontmost application—not the one running the script—is necessary for the correct operation of your script?
-- Chris Page - Software Wrangler
That’s “Chris” with a silent *and* invisible “3”.
|
_______________________________________________
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