• 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:55:38 +1100

Hi Malcolm,

My real-world script is very different from the example I gave, much more
detailed, drawn out and very specific to each handler being run. The
essence of what I was trying to do (ie. get more than one returned result
passed back to the main handler) was there in the example script.

But I've seriously taken your advice on board and I like the use of log!

Many thanks,

Coj




Malcolm Fitzgerald <email@hidden>
Sent by:
applescript-users-bounces+brett.conlon=email@hidden
27/06/06 01:11 PM

To
applescript users <email@hidden>
cc

Subject
Re: Handler query - exchanging values







On 27/06/2006, at 11:58 AM, email@hidden wrote:

> Could someone please offer assistance?

In your example you are treating all the variables as if they were
global. They are not. You could make them global by declaring them so.

.......

Generally I prefer the second form, unless there is a need to use
globals.

By the way, when your are writing test code, get into the habit of
returning useful information. I've replaced your if/then ... display
dialog with a log statement which pops the values of all the variables
into a record. It's simple and direct - you know what your output was -
you'll find it helps to keep you on top of your code.


Malcolm Fitzgerald




 _______________________________________________
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: Handler query - exchanging values (From: Malcolm Fitzgerald <email@hidden>)

  • Prev by Date: Re: Handler query - exchanging values
  • Next by Date: Create an email with an attachment
  • Previous by thread: Re: Handler query - exchanging values
  • Next by thread: Re: Handler query - exchanging values
  • Index(es):
    • Date
    • Thread