• 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: Why doesn't 'alias' error when the file no longer exists?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why doesn't 'alias' error when the file no longer exists?


  • Subject: Re: Why doesn't 'alias' error when the file no longer exists?
  • From: Emmanuel <email@hidden>
  • Date: Mon, 18 Dec 2000 20:13:02 +0100

At 16:46 +0100 18/12/00, Paul Berkowitz wrote:
>I always believed that the 'alias' form would error if the file no longer
>existed on the computer, so I would frequently error trap for it near the
>beginning of a script

Me too - and I guess we were right with 8.6.

This will certainly induce impredictible behaviors of lots of scripts
written "` la" 8.6, and I would like to thank warmly Paul for having
published the bug on this list.

Now for the fix.

It seems that:

------------------
alias (x as text)
------------------

will do what we want: returning the new location / new name / error if the
file was moved / renamed / deleted.

Still, we must take care that alias "" is not an error.

Emmanuel

who's still trying to list what improvements OS 9 brought


  • Follow-Ups:
    • Re: Why doesn't 'alias' error when the file no longer exists?
      • From: Bill Cheeseman <email@hidden>
    • Re: Why doesn't 'alias' error when the file no longer exists?
      • From: Paul Berkowitz <email@hidden>
References: 
 >Why doesn't 'alias' error when the file no longer exists? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Why doesn't 'alias' error when the file no longer exists?
  • Next by Date: Re: Why doesn't 'alias' error when the file no longer exists?
  • Previous by thread: Why doesn't 'alias' error when the file no longer exists?
  • Next by thread: Re: Why doesn't 'alias' error when the file no longer exists?
  • Index(es):
    • Date
    • Thread