I am trying to get the same data that the Quark/Utility/Usage/Pictures does via AppleScript.
I want to use it to select the pBox and relink it.
tell application "QuarkXPress"
tell document 1
set MissingImagesCount to 0
tell spread 1
set selected of every picture box to false
set MissingImageList to every picture box whose image 1 is
missing
set MissingImagesCount to number of items in MissingImageList
(* --this part does not work
repeat with x from 1 to MissingImagesCount
set PBoxNumber to picture box number of item x in MissingImageList --Bad Line of code
display dialog "Pict Box Number of Item " & x & " is " & PBoxNumber
set selected of picture box PBoxNumber to true
tell me to ReLinkthePicture{}
set selected of picture box PBoxNumber to false
end repeat
*)
end tell
end tell
display dialog "Missing Image Count is <" & MissingImagesCount & ">" buttons {"OK"} default button "OK"
giving up after 60
end tell
Thanks for any insight on this one.
Oakley