CFBundleIdentifier and Parental Control
CFBundleIdentifier and Parental Control
- Subject: CFBundleIdentifier and Parental Control
- From: Luther Fuller <email@hidden>
- Date: Tue, 12 Jun 2007 18:58:47 -0500
I was prompted to ask, in the thread "Applescript apps and Parental
Control", the question ...
If you have written an AppleScripted application which you intend to
be used by any user, admin or otherwise, what do you have to explain
to a non-admin user about your product?
The correct answer really is nothing "Nothing", but you need to know
the why and how of compiling your AppleScripted application as a
bundle and supplying it with a CFBundleIdentifier to understand why.
Every AppleScripted application should be saved as a bundle and the
bundle's Info.plist file, located in its Contents folder, should
contain a CFBundleIdentifier key.
The document "BPRuntimeConfig.pdf" explains everything else you need
to know. You can find it in your "Developer" folder or at the Apple
web site. (In particular, you should understand the relationship
between the CFBundleIdentifier key and your application's preference
file, if it has one.)
So, what does this have to do with Parental Controls and Finder &
System Configure of applications? Simple, applications having a
CFBundleIdentifier key play nice with Finder & System Configure. All
of my AppleScript applications are bundles, but I have been lax about
supplying them with a CFBundleIdentifier key. After all, most of them
are for my use only. And while recently playing around with Parental
Controls, I could not get any of them to appear in the Finder &
System Configure applications list.
This afternoon, I supplied some of them with a CFBundleIdentifier
key ... and they all appeared in the Finder & System Configure
applications list. No problems. They are there to be checked or
unchecked as you please. All have CFBundleSignature = aplt, so this
is used by Parental Controls only if CFBundleIdentifier is missing.
So, the bottom line is ...
If you are going to distribute an AppleScripted application for
others to use, it seems to be an absolute requirement that it have a
CFBundleIdentifier key.
And ...
If you have an AppleScripted application that doesn't play nice with
Finder & System Configure because it lacks a CFBundleIdentifier key,
then you have an application with a bug that you need to report to
the author.
_______________________________________________
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