I’m trying to move a box in Quark by 2 inches (left) relative to its current position
tell application "QuarkXPress"
activate
set CurrentPos to (get left of bounds of current box as inch units)
set left of current box to (CurrentPos - 2)
end tell
this doesn’t understand the (CurrentPos - 2) part…
You set CurrentPos to inch units, and then tried to subtract an integer “2” that is not in inch units.
This is the info I have available to me:
The values for certain objects in Quark are not numbers, but another value class. Quark stores measurements in the form of a number followed by a quote to indicate inches. Quark converts inputs if you put them in the proper string format, 2.0"
which in a string looks like “2.0"”
so try
Or you may have to
In any event, the value conversion is your issue.
SC
Actually, based on what you trying to do (based on other posts), you are going the wrong way. Your posted code will only “extend” the box to the left, not move it.
Try this:
tell application "QuarkXPress"
activate
set tB to get top of bounds of current box as inch units as real
set lB to get left of bounds of current box as inch units as real
set origin of bounds of current box to {(tB), (lB - 2)} as inches point
end tell