Re: Cannot return string from handler
Re: Cannot return string from handler
- Subject: Re: Cannot return string from handler
- From: Ruth Bygrave <email@hidden>
- Date: Fri, 5 May 2006 13:25:04 +0100
On 5 May 2006, at 13:08, Shane Stanley wrote:
On 5/5/06 9:53 PM, "Ruth Bygrave" <email@hidden> wrote:
Try:
on init()
tell application "Finder"
if disk "Disgo" exists then
set myTarget to "Disgo"
end if
return myTarget
end tell
end init
The tell block was closed, I'd just forgotten to copy that bit :-)
which is called from the main script as
set targetRoot to (my init)
set targetRoot to my init()
Aha! I Ta very much.
R B (still slightly confused, but thinks that this may be something
to do with it not having any parameters, unlike the other handlers
I've tried....)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden