• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cannot return string from handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Cannot return string from handler (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Cannot return string from handler
  • Next by Date: Re: IPTC Data
  • Previous by thread: Re: Cannot return string from handler
  • Next by thread: Re: Cannot return string from handler
  • Index(es):
    • Date
    • Thread