• 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: Paul Berkowitz <email@hidden>
  • Date: Mon, 18 Dec 2000 12:39:58 -0800

On 12/18/00 11:13 AM, "Emmanuel" <email@hidden> wrote:

> 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.
>

Thanks for confirming it, Emmanuel, and for confirming that it used to
"behave". I didn't realize it was 9.0 that introduced the change, nor was I
absolutely sure that it had ever behaved differently.

> 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.
>

Just puzzled was all.

> 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.

Actually, I had that in my original post too.
>
> Still, we must take care that alias "" is not an error.

So true.

--
Paul Berkowitz


References: 
 >Re: Why doesn't 'alias' error when the file no longer exists? (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Why doesn't 'alias' error when the file no longer exists?
  • Next by Date: Fwd: Re: Can someone explain this?
  • Previous by thread: Re: 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