Re: Path string interpretation with 'as alias'
Re: Path string interpretation with 'as alias'
- Subject: Re: Path string interpretation with 'as alias'
- From: Emmanuel <email@hidden>
- Date: Wed, 18 Jun 2003 17:29:36 +0200
At 3:49 PM +0100 18/06/03, Nigel Garvey wrote:
>
try
>
pathString as alias
>
on error
>
-- The folder doesn't exist
>
end try
>
>
I want it to run on any system and to differentiate between files and
>
folders, but it seems that the behaviour of 'as alias' has changed
>
between 9.2.2 and 10.2.6 with regard to how rigidly trailing colons are
>
observed:
I would have said that I have not the problem that you say, but I rather use:
>
try
>
alias pathString
>
on error
>
-- The folder doesn't exist
>
end try
(One problem with that - you know - is that on OS 8&9 alias "" or even alias ":" is fine.)
Of course sooner or later you hit the problem of packages, which are files whose path ends with colon.
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.