• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using tell application "name" where the name comes from GUI Script...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Using tell application "name" where the name comes from GUI Script...
      • From: Christopher Nebel <email@hidden>
    • Re: Using tell application "name" where the name comes from GUI Script...
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: Using tell application "name" where the name comes from GUI Script... (From: "Kevin Bohan" <email@hidden>)

  • Prev by Date: Re: Read file bug?
  • Next by Date: Choosing variable names [was - Re: Read file bug?]
  • Previous by thread: Re: Using tell application "name" where the name comes from GUI Script...
  • Next by thread: Re: Using tell application "name" where the name comes from GUI Script...
  • Index(es):
    • Date
    • Thread