Applescript: setting checkbox and pop-up cells
You have a tiny spreadsheet, in which cell B2 has automatic format (as shown by the cells inspector), C2 is a checkbox, and D2 is a pop-up menu with possible values "apple", "orange" and "banana". Here's a trivial script:
*tell application "Numbers"*
*tell first table of first sheet of document of front window*
*set value of cell "B2" to "test"*
*set value of cell "C2" to true*
*set value of cell "D2" to "orange"*
*end tell*
*end tell*
This successfully sets B2, but the other two cells are unchanged. For the checkbox, I've tried 0 and 1 (with and without quotes), true and false (with and without quotes), and "Checked" and "Unchecked" (mixed case and lower case), all to no effect. For the pop-up menu cell, I've tried the strings, and small integers (guessing that the menu choices might be encoded that way), to no effect.
Unfortunately, it seems that Numbers isn't recordable, so I can't use Script Editor's record function to figure this out. Short of scripting the GUI, is there any way to set the values of checkbox and pop-up cells?
Mac Pro (early 2008), iMac (late 2006), MacBook (late 2006), Mac OS X (10.5.6)