Re: Script Spaces
Re: Script Spaces
- Subject: Re: Script Spaces
- From: Robert Poland <email@hidden>
- Date: Wed, 22 Apr 2009 06:46:23 -0600
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
_______________________________________________
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