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: John Delacour <email@hidden>
- Date: Thu, 17 Apr 2003 12:32:16 +0100
- Mac-eudora-version: 6.0a15
At 10:54 am +0000 17/4/03, Kevin Bohan wrote:
1. I changed the script from process to application process as per
Bill Cheeseman's response to my mail.
That's Bill for you. You'd better ask him. So far as I'm concerned...
tell application "System Events"
count processes
--> 25
count application processes
--> 25
processes = application processes
--> true
end tell
2. Some applications may present a dialog when told to quit, so I
put an "ignoring application responses" statement.
3. Some apps seem to cause some grief for my script I sometimes get
a popup saying that there was an invalid connection. I don't know
what this is, so I put a try block around it.
It means the app is already quitting.
Any idea how I can get this to distinguish creator codes based on case?
This looks like one of System Events many bugs.
considering case
tell application "System Events"
processes whose creator type is "toys"
end tell
end considering
--> {application process "Script Editor" of application "System Events"}
_______________________________________________
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.