• 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: Script Spaces
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Spaces


  • Subject: Re: Script Spaces
  • From: "Jeremy W. Sherman" <email@hidden>
  • Date: Wed, 22 Apr 2009 00:31:47 -0400

If you don't want to have to fire up the app to be able to send it events, you can just look at its Info.plist (located at Foo.app/Contents/Info.plist) for the CFBundleIdentifier value. Spotlight's backend also knows it under the name kMDItemCFBundleIdentifier; to get a list of all bundle ids in /Applications, for example, you can run:

do shell script "for k in /Applications/*.app; do mdls -name kMDItemDisplayName -raw \"$k\"; echo; mdls -name kMDItemCFBundleIdentifier -raw \"$k\"; echo '\n'; done"

Sample output:
"Address Book
com.apple.AddressBook

Automator
com.apple.Automator
…

On Tue, Apr 21, 2009 at 9:55 AM, Steve Thompson <email@hidden> wrote:

On 21 Apr 2009, at 14:28, Robert Poland wrote:

What's the secret to identifying the App that is targeted? I can't seem to get other than "Unknown".

tell application "System Events" to get bundle identifier of every process



It appears that there is no dictionary for expose preferences, any help here.

It's in the dictionary for "System Events"

Steve
--------------------------
Steve Thompson
http://stetho.mp

 _______________________________________________
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

  • Follow-Ups:
    • Re: Script Spaces
      • From: Robert Poland <email@hidden>
References: 
 >Script Spaces (From: Robert Poland <email@hidden>)
 >Re: Script Spaces (From: Steve Thompson <email@hidden>)
 >Re: Script Spaces (From: Robert Poland <email@hidden>)
 >Re: Script Spaces (From: Steve Thompson <email@hidden>)

  • Prev by Date: Re: Script Spaces
  • Next by Date: Re: Script Spaces
  • Previous by thread: Re: Script Spaces
  • Next by thread: Re: Script Spaces
  • Index(es):
    • Date
    • Thread