I am looking for a script to import *.eps files in Quark Xpress.
For what I have seen made it possible to import an image into a selected image box in Quark. But is it possible to import more images at once in Quark?
Is it also possible to import text into Quark with a script?
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
And this for text:
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 story 1 to theFile as alias
end tell
end tell
end tell
You better check out first want you want exactly. These are the basic lines to import text or images. If you want to import more, you need to tell which text or image has to be placed in which box and on which page.
So, go ahead and we’ll see your code.
I know.
But the images and the text I have to import to Quark changes everytime.
That’s why I was thinking about a clipboard.
If I can insert the images and text I have to import to Quark in the clipboard, that would take back a lot of work.
As the situation is now, everything has to be imported one by one by choosing “Get picture” and then you choose an image from a folder.
do you want all the textfiles of a folder in one text box or place them in different boxes (for example one on each page)
where do you want to put all the images? On one page, or on several? In a new or existing document?
For example:
You can name boxes on the masterpage, add a new page for every image and place it on that page. Same for text.
But for text you can also put everything into one box on one page.
oh, the textfiles have to be put in different textboxes
same for the images.
on each page there’s 33 image boxes needed
and the total of pages depends on the total of images that are needed to import. Mostly about 100+.
Well, here’s some code to put you further on the way.
There is supposed to be an open Quark document with one masterpage containing one picturebox.
set picFolder to (choose folder with prompt "Selecteer een map met afbeeldingen") as string
set picList to list folder picFolder without invisibles
tell application "QuarkXPress Passport"
activate
tell document 1
repeat with eachFile in picList
set lastPage to count of pages
show page lastPage
try
tell picture box 1 of page lastPage
set image 1 to (picFolder & eachFile) as alias
set bounds of image 1 to proportional fit
end tell
end try
make page at end
end repeat
end tell
end tell
is it possible with AppleScript to make a command like “select all pics from folder” and that they get put in image boxes in Quark?
or is it only possible to import them by naming each file in the script?