Updating a script tag using applescript (ID 18.6)
Last year I wrote a script to find the contents of a cell in a table and then change the value in the script label for that cell.
This year I've gone back to it and it's failing on the following:
get contents of every cell
Here's a portion of the script that loops over the tables on the page:
set myFrame to (every text frame whose label is item 1 of myFrames)
repeat with x in myFrame
tell table 1 of x
get contents of every cell
set myList to (every cell of column 1 where contents of it is "WOW")
repeat with i from length of myList to 1 by -1
set myCell to item i of myList
if i is less than 10 then
set label of myCell to "[WOWCode" & "0" & i & "]"
else
set label of myCell to "[WOWCode" & i & "]"
end if
end repeat
end tell
end repeat
Any idea why it's failing?
