I am trying to update an old script to set alternating row colours on a table but am hitting a wall with “selection”.
I am using OmniGraffle 7.3 test (v177.2 r281886) and the script is from 2008 or so named “Create Alternating Row Colors.scpt” (author unknown). I have cut the script to this minimum but get this error message. “OmniGraffle got an error: AppleEvent handler failed.”
tell application "OmniGraffle"
tell front window
if selection is {} then
display dialog "Please select a table with at least two rows. The first cell of the each of the first two rows will become your alternating row colors." buttons ["OK"] default button 1
end if
end tell
end tell
Even just adding “get selection” right after the “tell front window” line produces an error.
I am running Mac OS X El Capitan version 10.11.6 (15G1212)
Thanks in advance!
Ed