I have not been able to find the correct AppleScript mojo to match column names that contain EOL/return characters, such as:
“Directory Services Group
Short Name”
The return/EOL between Group and Short is not created by Numbers’ line justification but is an actual return character.
If I drop the return character, I can easily find the value of a given row aRowNum for a column in AppleScript with:
tell application "Numbers" to set aDSShortName to value of cell aRowNum of column ("Directory Services Group Short Name") of aTable
but none of the following seem to match when the return is involved:
tell application "Numbers" to set aDSShortName to value of cell aRowNum of column ("Directory Services Group" & linefeed & "Short Name") of aTable
tell application "Numbers" to set aDSShortName to value of cell aRowNum of column ("Directory Services Group" & return & "Short Name") of aTable
What is the magic incantation to make this work? Of course I can just get rid of the return in my column name in Numbers, but I’d rather get this figured out and keep the spreadsheet looking nicer…
Scott
PS Script needs to work on both Snow Leopard and Lion (I’m currently testing it on SL)