• 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: duplicate command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: duplicate command


  • Subject: Re: duplicate command
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 12 Apr 2013 14:34:44 -0500

On Apr 12, 2013, at 12:16, koenig.yvan <email@hidden> wrote:
And I'm interested to learn what would be dangerous with that.
______________________________________________________________________

The result variable in Applescript is similar in concept to Perl's default variable.

There's nothing wrong with using it, but you have to understand the pitfalls.

I stopped using it regularly years ago, because it makes debugging a large script more difficult particularly when watching values in Script Debugger's variable inspector during a trace.

BUT I will use result on occasion when doing sequential data transformations if I don't want to fiddle with an explicit temp variable — especially if the script is a one-off and won't need to be maintained.

--
Best Regards,
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: duplicate command (From: Robert Cuilla <email@hidden>)
 >Re: duplicate command (From: Luther Fuller <email@hidden>)
 >Re: duplicate command (From: "koenig.yvan" <email@hidden>)
 >Re: duplicate command (From: Luther Fuller <email@hidden>)
 >Re: duplicate command (From: "koenig.yvan" <email@hidden>)
 >Re: duplicate command (From: Simon Topliss <email@hidden>)
 >Re: duplicate command (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: duplicate command
  • Next by Date: Re: duplicate command
  • Previous by thread: Re: duplicate command
  • Next by thread: Re: duplicate command
  • Index(es):
    • Date
    • Thread