Trying to merge two shortcuts in one.
Separately they work fine, but now I'm trying to detect if fill:no fill
is true to know it's a text-only element. Otherwise, it detects it's a shape with a fill color.
tell application id "OGfl"
set lstSeln to selection of front window
set oShape to item 1 of lstSeln
tell canvas of front window
if fill is "no fill" then
set color of text of oShape to {1, 1, 1, 1}
else
set fill color of oShape to {1, 1, 1}
end if
end tell
end tell