Importing text/images in Quark

Hi,

I am trying to make a script which can make a new document with text and picture boxes, and a script which can import text and pictures (*.eps) in the boxes.

Now I have a script for making a new document with text and picture boxes, but I’m still stuck with importing the text and pictures.

The problem is: The images which need to be imported are different each time, and are always about 100 or more.

I just want to import the images in the right picture boxes.
I tried importing them alphabetically but the right order isn’t alphabetically.

I also tried a script which makes a new document, and imports the images while making the picture boxes at the same time. With a dialog box I can insert the values and coordinates for the boxes. The problem was that I couldn’t see which image was about to be imported untill it was imported.

It would be a solution to put the images in a clipper, and just drag and drop them into a new document. But I don’t know how hard it is to make such thing with AppleScript.

Is it possible to let a script run, and to import each image one by one? So that, each time an image gets imported the script will select the next box, and you can select the next image to import.

Something like this code for importing an image:


set theFile to (choose file with prompt "Select file") as string 

tell application "QuarkXPress Passport" 
  tell document 1 
     tell current box of current page 
        set image 1 to theFile as alias 
     end tell 
  end tell 
end tell

But then repeating it, and importing the images in a different box each time.

Frederick

Not sure exactly what you’re trying to do. I think I did something similar to this. it was for placing photos in a photo album template with a known box order. I had a drop folder where the photos got dumped. Then I imported them into iPhoto and put them in a library. The user could drag the photos around to arrange their order, and then run another script to place them into the correct box sequence in the Quark file.