Re: Determining path to script
Re: Determining path to script
- Subject: Re: Determining path to script
- From: Christopher Nebel <email@hidden>
- Date: Tue, 2 Mar 2004 15:48:30 -0800
On Mar 2, 2004, at 12:16 PM, Chap Harrison wrote:
How do I make a script find out its own path? ...
OK, general question here: why do people want to do this? The usual
reason, as far as I can tell, is to get at "support files" for the
script -- data, templates, script libraries, and so on. What other
reasons do people have? If you could use application bundles [1] in a
coherent fashion, would that solve your problem? (I'm aware of the
"I've got a bunch of scripts that all use the same library" problem,
for which the answer is "no.")
--Chris Nebel
AppleScript Engineering
[1] For those who don't know the term, a "bundle" in Mac OS X is a
folder that looks like a file in the Finder. You (as the application
writer) can toss whatever you like into the folder; there are standard
calls for getting at the contents. Many Mac OS X applications are
packaged this way.
_______________________________________________
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.