| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I'm trying to set some variables as follows:
setTheVariables({{variable1, 10}, {variable2, 3}, {variable3, (variable1 - variable2)}, {variable4, true}})
-- Set the given variables
on setTheVariables(listOfVariables)
set countVariables to count items in listOfVariables
repeat with i from 1 to countVariables
set (item 1 of item i of listOfVariables) to (item 2 of item i of listOfVariables)
end repeat
end setTheVariables
However, this code doesn't seem to work... Is it just not possible to set variables in a loop or am I doing something wrong?
_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden This email sent to email@hidden
| References: | |
| >Variables in loop (From: Jasper Van Proeyen <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.