Re: Things I thought I knew, but didn't - variable scope in repeat loops
Re: Things I thought I knew, but didn't - variable scope in repeat loops
- Subject: Re: Things I thought I knew, but didn't - variable scope in repeat loops
- From: Ed Stockly <email@hidden>
- Date: Sun, 28 Dec 2008 17:59:28 -0800
By the way, if you have Script Debugger, you can take all the mystery
out of this process. http://www.latenightsw.com/
In debugging mode you can step through each line of this script and
see the value of each variable after each line executes.
It will even show you the value of various properties or globals that
may share the same name as local variables.
repeat with i from 1 to 2
repeat with i from 1 to 2
set i to 3
end repeat
display dialog i -- "3" both times
end repeat
display dialog i -- "3"
ES
_______________________________________________
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