Re: Using tell application "name" where the name comes from GUI Script...
Re: Using tell application "name" where the name comes from GUI Script...
- Subject: Re: Using tell application "name" where the name comes from GUI Script...
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 17 Apr 2003 11:54:31 -0400
on 03-04-17 10:04 AM, Kevin Bohan at email@hidden wrote:
>
> (Bill also showed you how to quit the application process, which is going
>
> to
>
> be neater in some cases than quitting the application.)
>
>
>
>
Actually I couldn't get the code Bill sent me to work with 'quit'. It worked
>
fine with the 'display dialog', but if I substituted a quit, it didn't work.
>
Between one thing and another I forgot to mention that, sorry.
This would be a bug in System Events, I guess. The System Events 1.2
dictionary for 'process' gives the following description for the 'accepts
high level events' property: "Is the process high-level event aware (accepts
open application, open document, print document, and quit)?" This implies
that 'process' as well as 'application' should respond to the 'quit' event.
But, as somebody else mentioned, there have been problems (at least in some
versions) when 'quit' is inside a Finder tell block, and perhaps also in a
System Events tell block.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.