• 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: Bundle Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bundle Objects


  • Subject: Re: Bundle Objects
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 21 Nov 2007 15:03:45 -0600

Here's a short snippet of code ...

on run
...
...
tell me to display alert dTitle message instructions buttons {"Help", "OK"} default button 2
if (button returned of the result) = "OK" then return
tell application "Finder"
(file "Editions.pdf" of folder "Resources" of folder "Contents" of (path to me)) as alias
open the result
end tell
end run


Notice that the documentation for the application is a file stored within the application bundle. That way the documentation for the application cannot be lost.

I have also used the /Contents/Plug-ins/ folder as a way to let a user set preferences via the Get Info window. (If the Plug-ins folder exists, it appears in Get Info. The things you want to enable/disable are sub-folders.)

Need to use a shell command, but don't want to explain to the user why they have to install it in exactly the right place? ... Put the command file in the application bundle.

Need to create a folder with a custom icon? Put the prototype folder in /Contents/Resources/ , then copy and rename as necessary.

There are no rules, knock yourself out!

(Well, there are some rules in BPRuntimeConfig.pdf, but these only pretain to the Info.plist file. Custom icons and some other details.)

On Nov 21, 2007, at 1:39 PM, Oakley Masten wrote:

Hi All
Here we go again

Can a file be embedded into the AppleScript Bundle for
use by the script?
If so - what can be embedded? Text, images,
sound,video ???

More specifically: Can I embed a Quark template in the
bundle to be opened by Quark from an AppleScript Call?
It would then travel where ever the script went.

If so how would it be done and how would it be called?
_______________________________________________
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
References: 
 >Bundle Objects (From: Oakley Masten <email@hidden>)

  • Prev by Date: Re: Parsing through Excel Columns
  • Next by Date: Re: Bundle Objects
  • Previous by thread: Bundle Objects
  • Next by thread: Re: Bundle Objects
  • Index(es):
    • Date
    • Thread