Re: API to determine a list of installed scriptable applications
Re: API to determine a list of installed scriptable applications
- Subject: Re: API to determine a list of installed scriptable applications
- From: Peter Lübke <email@hidden>
- Date: Sun, 03 Apr 2011 14:35:27 +0200
Am 02.04.2011 um 11:56 schrieb email@hidden:
Is there an API to determine a list of installed scriptable
applications?
Such a list is displayed by the AppleScript Editor menu item Open
Dictionary...
Application bundles can be queried for using MDQuery and the
scriptability of a given application can be be determined.
I don't think that ASE uses this approach as its existence long
predates Spotlight etc.
Also the ASE list includes items that have not been previously
launched.
Regards
Jonathan Mitchell
The list of the applications shown in AppleScript Editor menu item
Open Dictionary... is stored in a plist file:
home/Library/Preferences/com.apple.ScriptEditor2.plist (key:
"LibraryApplications").
I think the reason you see items that haven't been previously
launched is that these are Apple Applications / Additions that might
already be in the plist when the OS is installed.
Maybe you can use these as a starting point and add items to your
own .plist file as you or your users found more scriptable apps?
Just out of interest: how do you determine scriptability of an
application without launching it?
Cheers,
Peter
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden