I’m new to AppleScript (and new to the Macs to be honest) but I do quite a bit of scripting for Windows systems administration. I’m trying to build an application that has a matrix of radio buttons. The selected button is saved to a plist. When the application is launched again, that value is retrieved from the plist. I want to loop through a matrix and select the correct item in the matrix for display to the user.
I have the loop code working, but I’m stumped on something that I would think would be fairly simple.
How can I get the total number of items (rows) in the matrix (as defined by the rows property in Interface Builder) to control my repeat loop?
My repeat loop is fairly simple:
repeat with i from 1 to imtxPCTypeNum
if the title of the cell i of the matrix "x" of the window "w" is equal to "value" then
set current row of matrix "x" of the window "w" to i
end if
end repeat
But how do I get imtxPCTypeNum?
Thanks!!!