Scripting in quark...
Scripting in quark...
- Subject: Scripting in quark...
- From: Stefan Eriksson <email@hidden>
- Date: Mon, 18 Apr 2005 23:08:28 +0200
Hello !
I'm trying to get a script to automatically mount every image from a selected folder, the script runs and adds as many pages as there are images in the folder, creates the imagebox but fails to mount every image... if anyone can give me a hint i would really be happy !
This code works like it should... (when creating the box manually and selects the frame, and then run the 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
Code so-far looks like this... creates the pages, creates the frames but fails to mount every image into it...
set picFolder to (choose folder with prompt "Select folder with images") 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
Any ideas are gladly accepted !
Best regards, Stefan
_______________________________________________
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