Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Variables in loop



Hi list,

I'm trying to set some variables as follows:

variable1, 10}, {variable2, 3}, {variable3, (variable1 - variable2)}, {variable4, true}})

-- Set the given variables
on 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?

Regards,
Jasper.

 _______________________________________________
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



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.