Re: duplicate command
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