When I try to script duplicating page items in Quark, it duplicates the first item 9 times rather than duplicate 9 items one time each. How do I get it to duplicate the first item just one time and then move on to the second item?
Any help would be greatly appreciated!
on open of droppedFiles --> This is the line of code that begins a droplet.
with timeout of 900 seconds -->The script will try for 15 minutes before timing out. Default is 2 minutes, which is way too little.
tell application "QuarkXPress"
repeat with afile in droppedFiles
open afile as alias
tell document 1
set pictureBoxes to every picture box
repeat with i from 1 to number of pictureBoxes
set pictureBox to item i of pictureBoxes
set duplicateBox to duplicate pictureBox to after pictureBox
close saving yes
end tell --end of tell document 1 block
end repeat --end of first repeat loop
end tell --end of tell Quark block
end open --> This is the line of code that ends a droplet.