• 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
Relative paths (was Re: [newbie questions])
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >[newbie questions] (From: Steve Ivy <email@hidden>)

  • Prev by Date: Re: whose name contains space
  • Next by Date: Re: Chevrons again (Re: compiler directive, was (Follow-up on
  • Previous by thread: Re: [newbie questions]
  • Next by thread: Re: [newbie questions]
  • Index(es):
    • Date
    • Thread