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

Re[2]: Simple script doesn't work


  • Subject: Re[2]: Simple script doesn't work
  • From: Leonid Bogdanov <email@hidden>
  • Date: Mon, 16 May 2011 15:25:57 +0400

Hello, Axel!

  Yes, I knew about this version, but wanted to have a shorter variant :)


Mon, 16 May 2011 13:19:01 +0200 letter from Axel Luttgens <email@hidden>:

> Le 16 mai 2011 à 10:38, Leonid Bogdanov a écrit :
>
> > Hello!
> >
> > I'm curious why the following script throws an error during execution:
> >
> > tell application "System Events"
> > 	set brwsrs to every process whose bundle identifier is in
> {"com.apple.safari", "com.google.chrome"}
> > 	return brwsrs
> > end tell
> >
> > The error is "Can't make  {"com.apple.safari", "com.google.chrome"} into
> type reference"
>
> Hello Leonid,
>
> Yes, System Events doesn't really like such whose clauses.
>
> Fortunately, since your list will very likely be kept rather short, you may
> allow for some verbosity:
>
> tell application "System Events"
> return application processes whose bundle identifier is "com.apple.safari" or
> bundle identifier is "com.google.chrome"
> end tell
>
> HTH,
> Axel
>
> _______________________________________________
> 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
 _______________________________________________
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: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Simple script doesn't work
  • Next by Date: Re: Text and Offset Peculiarities ???
  • Previous by thread: Re: Simple script doesn't work
  • Next by thread: Re: Simple script doesn't work
  • Index(es):
    • Date
    • Thread