Re: Cannot return string from handler
Re: Cannot return string from handler
- Subject: Re: Cannot return string from handler
- From: Shane Stanley <email@hidden>
- Date: Fri, 05 May 2006 08:08:37 -0400
- Thread-topic: Cannot return string from handler
On 5/5/06 9:53 PM, "Ruth Bygrave" <email@hidden> wrote:
> on init
> tell application "Finder"
> if disk "Disgo" exists
> set myTarget to "Disgo"
> end if
> return myTarget
> end init
Try:
on init()
tell application "Finder"
if disk "Disgo" exists then
set myTarget to "Disgo"
end if
return myTarget
end tell
end init
> which is called from the main script as
> set targetRoot to (my init)
set targetRoot to my init()
--
Shane Stanley <email@hidden>
AppleScript Pro Sessions NJ May 06 <http://www.scriptingmatters.com/aspro>
_______________________________________________
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