Re: Inside Packages
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.