Re: Error-trapping alias properties
Re: Error-trapping alias properties
- Subject: Re: Error-trapping alias properties
- From: Andy Wylie <email@hidden>
- Date: Sat, 30 Mar 2002 00:09:17 +1200
on 29/3/02 4:43 PM, Paul Skinner at email@hidden wrote:
>
On Thursday, March 28, 2002, at 06:49 PM, Andy Wylie wrote:
>
> The key seems to be
>
> 'as string'
>
in the context of '(someFile as string) as alias' in an example check which
worked OMM.
>
>
Anything that tries to use the alias fails to resolve it and errors out.
>
so can't you resolve it using the 3 examples I posted?
>
>
The odd thing is that the finder doesn't properly 'break' the alias when
>
the original item is deleted.
>
finder?? I don't see any reference
>
--script saved as an application
>
property someFile : ""
>
try
>
someFile as alias
>
on error
>
set someFile to choose file
>
end try
>
display dialog (((class of someFile) as text) & " \"" & someFile as
>
text) & "\""
>
--end script
OMM (OS 8.6 AS 1.3.7) strings are happily coerced to aliases ("" as alias is
also path to me in some environments) so I must use 'property someFile :
missing value' to get error.
_____________________________ Andy
_______________________________________________
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.