I’ve put together a script for doing a number of find/replaces on a Quark doc which works fine,
and part of this script does a find/replace of an image, which works ok.
At the mo I get the count of all the picture boxes in the document however,
when trying to get the count of picture boxes on a specific page I get an
error. Here’s the code:-
set totalpics to count picture box of page 3 of document 1
Please can someone show me how I should be referencing the count of pic
boxes on page 3.
nick, your code works fine for me all i can think of is where this line is in your script. Inside app tell block ok if inside tell doc or page then error. See if this helps
tell application "QuarkXPress"
--
set totalpics to count picture box of page 3 of document 1
--
tell document 1
set totalpics to count picture box of page 3
--
tell page 3
set totalpics to count picture box
end tell
--
end tell
end tell