I need to autoincrement a variable in a loop for Automator. I have no idea to do it... I'm very new in AppleScript, have been looking around and googling but didn't find much info.
Any ideas ?
You can use something like this:
set myVar to 10
repeat with i from 1 to 5
set newVar to myVar + i
display dialog (newVar)
end repeat
Did this help?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With