Re: Can't Add a Script App to the Keychain
Re: Can't Add a Script App to the Keychain
- Subject: Re: Can't Add a Script App to the Keychain
- From: Shane Stanley <email@hidden>
- Date: Fri, 03 Apr 2015 21:26:57 +1100
On 3 Apr 2015, at 7:56 pm, S. J. Cunningham <email@hidden> wrote:
>
> If I execute the script from Script Debugger, Script Debugger gets added to the keychain for the target network computer but, although I can select the modified applet to add with the Keychain Access Utility, it ignores it and doesn't add it to the list.
Bummer. I'm not sure what else to suggest.
> As an aside, the applet had no Bundle Identifier before I added it. Shouldn't "get id of application "myScriptApp.app"" have returned an error instead of "aplt" (which is the Bundle Creator Type Code? After adding the Bundle Identifier, it returns "com.sjc.applet-name" as expected.
It's working as documented. This was actually defined in the days when Rosetta was part of the standard installation, which even precedes Snow Leopard ;-) From the 10.5 release notes:
> It is now possible to simply address an application object by id, where the id is either the bundle identifier or the four-character signature code.
They even go on to say:
> Scripts intended for distribution should use the id form.
Anyway, this sort of thing still works:
tell application id "MACS"
id
end tell
--> com.apple.finder
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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