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

Re: Inside Packages


  • Subject: Re: Inside Packages
  • From: Walter Ian Kaye <email@hidden>
  • Date: Sat, 5 Jun 2004 16:18:43 -0700

At 11:01p +0100 06/05/2004, Mark Thomas didst inscribe upon an electronic papyrus:

Hi,
Does anyone know if there a way to get Applescript to work and execute
within a package, within MacOS 9.x, as I'm trying to copy some driver files
from within my installer/tutorial application package. I've tried using the
AppleScript editor but keeps on barking on not working within packages,
although there does seem to been this key package word. (On MacOS-X I'm
using a bsd script)

Also is there a way to get the path of where the script is running ???, as
the files I want to install reside in the same directory as the AppleScript,
and would like to use a relative path if possible.

You can get the path to your application itself (assuming it has a unique creator code), and then use a relative path from its location. Since it's your own package, you know you can depend on the relative paths within it.

tell application "Finder"
set p to application file id "myAp" as alias as string
end tell
set r to p & "Contents:Resources:myDriver"


Something along those lines. Season to taste.


-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Inside Packages (From: Mark Thomas <email@hidden>)

  • Prev by Date: Inside Packages
  • Next by Date: Re: Recursively Copy Files, ignoring I/O Errors
  • Previous by thread: Inside Packages
  • Next by thread: Re: Inside Packages
  • Index(es):
    • Date
    • Thread