Re: getting 'continue' to return something (Was Re: Determining path to script)
Re: getting 'continue' to return something (Was Re: Determining path to script)
- Subject: Re: getting 'continue' to return something (Was Re: Determining path to script)
- From: Michael Terry <email@hidden>
- Date: Wed, 3 Mar 2004 14:08:25 -0800
On Mar 3, 2004, at 1:11 PM, Brennan wrote:
This got me thinking; why does 'continue' not return any value? Why
does
it obliterate the optional parameters? I can think of plenty of uses
for
this if it worked. Is the current implementation by design?
Sorry, my bad. (Oops, there I go again!) This should work better, with
the same caveats about optional parameters.
on path to place
if place is me then try
return path of front document as POSIX file as alias
on error
return continue path to place
end try
return continue path to place
end path to
You can still say, for instance, 'path to desktop' and things like
that, you just can't say 'path to desktop from network domain' or 'path
to desktop as string' although you can say (path to desktop) as string.
Mike
_______________________________________________
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.