Relative paths (was Re: [newbie questions])
Relative paths (was Re: [newbie questions])
- Subject: Relative paths (was Re: [newbie questions])
- From: Sander Tekelenburg <email@hidden>
- Date: Wed, 24 Jan 2001 16:18:48 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[Sorry about the Subject change, but I prefer descriptive Subjects ;)]
At 14:25 -0500 UTC, on 23/01/2001, Steve Ivy wrote:
[...]
>
I have some scripts I'm packaging up in, well, a Mac OS 9 package, and I
>
want my scripts to all use relative paths to load resources and other
>
scripts. How do I do this?
In addition to the "path to" possibility (look in the Standard Scripting
Additions' dictionary to find out which folders are recognised as
"special"), you could store a 'base path' in a property. For instance:
property BasePath : ((path to system folder folder as string) & "resources
and scripts:") as alias
HTH
-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0
iQA/AwUBOm7yVusywKfXgqKdEQJMBQCfcrpdzm5nNtpQMVV7wgMQpKGGBksAnRyJ
SEqZcsYk0kl0c0LJmOTdR9Ee
=HUk2
-----END PGP SIGNATURE-----
--
Sander Tekelenburg, <
mailto:email@hidden>
Web site at <
http://www.euronet.nl/~tekelenb/>
Do not seek to follow in the footsteps of the wise. Seek what they sought.