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: "S. J. Cunningham" <email@hidden>
- Date: Fri, 03 Apr 2015 04:56:52 -0400
On Apr 2, 2015, at 10:29 PM, Shane Stanley wrote:
> On 3 Apr 2015, at 12:05 pm, S. J. Cunningham <email@hidden> wrote:
>>
>> get id of application "myScriptApp.app"
>> --> "aplt"
>
> Bundle identifiers should be unique -- later versions of Script Editor try to give you one, and let you edit it in its sidebar. You're going to have to edit it yourself manually in Snow Leopard: use the contextual menu in the Finder and open the app package, and open /Contents/Info.plist in a text editor or property list editor. There should be an entry for CFBundleIdentifier; you need to change that to something unique.
>
> Generally, if you own an Internet domain, you start with that -- but in reverse order. So merci.co.uk becomes uk.co.merci. And you usually end with something like the app's name. But you are restricted to A-Z, a-z, 0-9, period or stop, and hyphens. No spaces, and no underscores. Because an individual can use a lot of scripts, it's not a bad idea to include something in the middle -- perhaps "scptd" or "applet". The end result should be unique. A look at the names in ~/Library/Preferences/ should give you the general idea.
>
> (And for those using more recent versions of the OS, overriding the default bundle identifier Script Editor provides is a good idea. Script Debugger lets you enter your reverse domain name in prefs, and will use that -- that's a much safer method.)
Thanks, Shane. I did as you suggested using plist editor and added a Bundle Identifier ("com.sjc.applet-name") but I still can't add it to the keychain. 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.
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.
_______________________________________________
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