Guest
2012-09-04, 04:02 AM
May be easier, if you want to loop through the last N canvases, to loop with an index range.
Code:
tell application id "OGfl"
set oWin to front window
tell front document
set lngCanvas to count of canvases
repeat with i from 4 to lngCanvas
set oCanvas to canvas i
set canvas of oWin to oCanvas
end repeat
set canvas of oWin to canvas 5
end tell
end tell
Last edited by RobTrew; 2012-09-04 at 08:07 AM..