Hi All,
I’d like to modify one axis of a: point (type from AppleScript types suite).
It doesn’t appear to behave as a list, nor a record. I can’t even get the class of it without running into a type specifier error.
local xPos
local theClazz
tell application “Numbers”
activate
set thisDocument to front document
tell thisDocument
set active sheet to sheet 11
tell active sheet
repeat with imageNum from 1 to 20
if imageNum mod 2 is equal to 0 then
set xPos to rightImageXPos
else
set xPos to leftImageXPos
end if
if exists image imageNum then
tell image imageNum
set locked to false
set item 1 of position to xPos -- Numbers got an error: Can’t make item 1 of position of image 1 of active sheet of document id … into type specifier.
set theClazz to class of position -- Numbers got an error: Can’t make class of position of image 1 of active sheet of document id … into type specifier.
set locked to true
end tell
else
exit repeat
end if
end repeat
end tell
end tell