Back and forth from a matrix of buttons
Back and forth from a matrix of buttons
- Subject: Back and forth from a matrix of buttons
- From: Jeffrey Mattox <email@hidden>
- Date: Mon, 10 Feb 2003 15:49:10 -0600
I can save the state of a matrix of, say checkboxes, to a list using this line:
set theList to (contents of matrix "zz" of window "main")
But the reverse ...
set (contents of matrix "zz" of window "main") to theList
... does not work.
I've found no better way than to do it one cell at a time, such as this:
set theIndex to 1
repeat with theItem in theList
set (contents of cell theIndex of matrix "zz" of window "main")
to theItem
set theIndex to theIndex + 1
end repeat
Is there a one-line solution to setting the matrix?
Jeff
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.