• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Copyright Notice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copyright Notice


  • Subject: Re: Copyright Notice
  • From: Stan Cleveland <email@hidden>
  • Date: Mon, 07 Jul 2008 16:18:18 -0700
  • Thread-topic: Copyright Notice

On 7/7/08 2:51 PM, "Oakley Masten" wrote:

> Is there a way to add a copyright notice to the "get info" screen for a small
> AppleScript app?
> This is no problem if we leave the app editable but we have to deliver
> compiled "run only" scripts.
>
> I know I can use Xcode but that is sort of like using a sledge hammer to drive
> a tack.
>
> No GUI interface is needed as these are just simple scripts, but, my boss
> wants a copyright notice added.
> Actually the company Lawyers want this done.

While I'm not very well-versed in the intricacies of Cocoa, I figured out
the following steps, which have worked well for me:

1. Using Script Editor, save your script as a run-only application bundle.
2. Right click on the application icon and choose "Show Package Contents".
3. Inside the "Resources" folder create a folder named "English.lproj".
4. Inside the "English.lproj" folder create an empty text file named
   "InfoPlist.strings".
5. Save the following six lines of text into the "InfoPlist.strings" file:
/* Localized versions of Info.plist keys */
CFBundleName = "MyScript";
CFBundleShortVersionString = "MyScript version 1.0.0";
CFBundleGetInfoString = "MyScript version 1.0.0, Copyright 2008 MyCompany";
NSHumanReadableCopyright = "Copyright 2008 MyCompany";
NSAppleScriptEnabled = NO;
6. Zip compress the application bundle and delete the original. Then, when
   you unzip the file, the Finder will retrieve the copyright info. Copying
   the application bundle from another server or disk onto a local drive
   will also cause the copyright info to be retrieved.

FYI, steps 4 and 5 can also be done with Property List Editor, if desired,
but I opted to keep these instructions simple. You would, of course,
substitute your application name, company name, version number, and
copyright year in place of "MyScript", "MyCompany", "1.0.0", and "2008".

The 'NSAppleScriptEnabled' property tells the OS whether your application is
scriptable, which it almost certainly is not.

Someone with more knowledge of the OS and Cocoa may have more or better
information!

HTH,
Stan C.


 _______________________________________________
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

  • Follow-Ups:
    • Re: Copyright Notice
      • From: Philip Aker <email@hidden>
    • Re: Copyright Notice
      • From: Shane Stanley <email@hidden>
References: 
 >Copyright Notice (From: Oakley Masten <email@hidden>)

  • Prev by Date: Re: "running" command issues
  • Next by Date: Re: Copyright Notice
  • Previous by thread: Copyright Notice
  • Next by thread: Re: Copyright Notice
  • Index(es):
    • Date
    • Thread