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

Re: Handler query - exchanging values


  • Subject: Re: Handler query - exchanging values
  • From: email@hidden
  • Date: Tue, 27 Jun 2006 14:03:03 +1100


Thanks to Deivy and Michelle for helping me with the following solution:

Transfer from firstHandler to secondHandler is shown in green. Transfer back is shown in blue.

firstHandler()

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

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

Cheers,

Coj


 _______________________________________________
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

  • Prev by Date: Handler query - exchanging values
  • Next by Date: Re: Handler query - exchanging values
  • Previous by thread: Re: Handler query - exchanging values
  • Next by thread: Re: Handler query - exchanging values
  • Index(es):
    • Date
    • Thread