Trying to mount a list of images in quark...
Trying to mount a list of images in quark...
- Subject: Trying to mount a list of images in quark...
- From: Stefan Eriksson <email@hidden>
- Date: Fri, 6 May 2005 22:11:37 +0200
Hello !
Trying to figuring out how to mount a series of images (as a list) into Quark 6.1, got a bit on the way but can figure out why this script fails... when running the script with one image it works just fine, when adding one more to the list it returns an error and unmount the image on the first page...(?!)
Anyone got a clue ?
Best regards, Stefan
-- set completepath to {"PB G4 Ster:Users:stefan:Pictures:050502:IMG_6965.JPG"} -- Works fine with one image
set completepath to {"PB G4 Ster:Users:stefan:Pictures:050502:IMG_6965.JPG", "PB G4 Ster:Users:stefan:Pictures:050502:IMG_6966.JPG"} -- Does not work so fine.... =(
repeat with i from 1 to (length of completepath)
set pathen to item i of completepath
pathen, i)
end repeat
to thePath, exportnumber)
-- First picture ? If yes create a new document
if exportnumber = 1 then
tell application "QuarkXPress Passport"
activate
make document with properties {bounds:{0.0, 0.0, 210, 297}}
end tell
end if
-- Mount the images...
tell application "QuarkXPress Passport"
activate
tell document 1
set lastPage to count of pages
show page lastPage
make picture box at beginning with properties {bounds:{12.7, 12.7, 136, 195}}
tell picture box 1 of page lastPage
set image 1 to (thePath) as alias
set bounds of image 1 to proportional fit
end tell
make page at end
end tell
end tell
end MountImage
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden