• 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: HD name change for X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HD name change for X


  • Subject: Re: HD name change for X
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 17 Jan 2002 19:54:45 -0800

On Thursday, January 17, 2002, at 06:32 PM, Michelle Steiner wrote:

On 1/17/02 6:35 PM, Christopher Nebel <email@hidden> wrote:

The first will only work on your machine, the second will work many
people's classic Mac OS systems, but the third will work anywhere. Mac
OS in general and AppleScript in particular define a lot of interesting
folders in abstract terms, so don't use paths unless you have to --
they're brittle.

But what if it isn't one of the magick folders, or isn't on the startup disk?

Well, then you're stuck for it, and you have to use another technique. However, I've seen an awful lot of people hit this problem with folders that *are* magic, so I thought I'd mention it.

Hard-coded paths are not inherently evil, but the more information you put into a static path string, the less resilient your script will be. Depending on the task, they might be right solution, but often not. Also remember that you can compromise: you could use a static path relative to a magic folder or somewhere that the user specifies.


--Chris Nebel
AppleScript Engineering


  • Prev by Date: Re: Archiving large folders to CD
  • Next by Date: AS101: scripts for distribution - various Qs
  • Previous by thread: Re: HD name change for X
  • Next by thread: Re: HD name change for X
  • Index(es):
    • Date
    • Thread