• 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
Handler query - exchanging values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Handler query - exchanging values


  • Subject: Handler query - exchanging values
  • From: email@hidden
  • Date: Tue, 27 Jun 2006 12:58:32 +1100


G'day,

I'm struggling with what I think should be a simple transfer of a variable from one handler to another.

Could someone please offer assistance?

In my hypothetical script below, all I'm trying to figure out is how to get the variable of oranges and grapes from the secondHandler back up into the firstHandler to use those values. I tried adding them as properties into the handler brackets but when run it states that the variable is not defined.

firstHandler()

on firstHandler()
        set apples to 1
        set bananas to 2
        my secondHandler(apples, bananas)
        if oranges is greater than bananas then
                display dialog "suck then screw face up"
        else if grapes is less than apple then
                display dialog "havanapple"
        end if
end firstHandler

on secondHandler(apples, bananas)
        if apples is 1 then set oranges to 3
        if bananas is 2 then set grapes to 4
end secondHandler

Many thanks,

Cojcolds
 _______________________________________________
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

  • Follow-Ups:
    • Re: Handler query - exchanging values
      • From: Malcolm Fitzgerald <email@hidden>
  • Prev by Date: RE: Down grading from 10.3.9 to 10.2.8
  • Next by Date: Re: Handler query - exchanging values
  • Previous by thread: Re: Dabbling with EXIF
  • Next by thread: Re: Handler query - exchanging values
  • Index(es):
    • Date
    • Thread