• 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: Re[2]: Simple script doesn't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re[2]: Simple script doesn't work


  • Subject: Re: Re[2]: Simple script doesn't work
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 16 May 2011 11:26:36 +0200

tell application "System Events"
set brwsrs to {}
set maybe to every process whose bundle identifier is "com.apple.safari"
if maybe is not {} then copy maybe to end of brwsrs
set maybe to every process whose bundle identifier is "com.google.chrome"
if maybe is not {} then copy maybe to end of brwsrs
return brwsrs
end tell

will do the trick if you may have several processes for a given ID.

Yvan KOENIG (VALLAURIS, France) 16 mai 2011 11:26:29


 _______________________________________________
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

References: 
 >Simple script doesn't work (From: Leonid Bogdanov <email@hidden>)
 >Re: Simple script doesn't work (From: Jan-Bultereys <email@hidden>)
 >Re[2]: Simple script doesn't work (From: Leonid Bogdanov <email@hidden>)

  • Prev by Date: Re[2]: Simple script doesn't work
  • Next by Date: Re: Simple script doesn't work
  • Previous by thread: Re[2]: Simple script doesn't work
  • Next by thread: Re: Simple script doesn't work
  • Index(es):
    • Date
    • Thread