Re: Why doesn't 'alias' error when the file no longer exists?
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