Re: Error-trapping alias properties
Re: Error-trapping alias properties
- Subject: Re: Error-trapping alias properties
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 30 Mar 2002 07:18:39 -0800
On 3/30/02 1:41 AM, "Andy Wylie" <email@hidden> wrote:
>
> Thanks to all who contributed. A successful conclusion.
>
>
aw c'mon!, spot the difference...
>
------------------
>
property someFile : "excuse me"
>
>
try
>
(someFile as string) as alias
>
display dialog someFile as text
>
on error
>
set someFile to choose file with prompt "%0 isagonner-->" & (someFile)
>
end try
>
>
------------------
>
>
do you need the reference?
>
Can you confirm this will or not suffice?
It will! Sorry, Andy. This does the same thing much more succinctly. I've
tried it both in and between OS 10.1.3 and 9.2.2, but my 9.2.2 has Akua and
Jon's. (It's dangerous to make assumptions about this sort of thing where
their string to alias coercions may be in play, but they can't possibly be
affecting the 10.1.3, so I'm pretty confident it will be all right. Same
conditions as the other version.) You were testing it on OS 8.6, yes? Was
that without Akua and Jon's (i.e. after removing them from Scripting
Additions folder and rebooting computer?)
I'm sorry I missed that gem first time around, Andy. And you were there
first.
--
Paul Berkowitz
_______________________________________________
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.