RE: Scripting in quark...
RE: Scripting in quark...
- Subject: RE: Scripting in quark...
- From: "Kumar Shailove" <email@hidden>
- Date: Tue, 19 Apr 2005 12:08:09 +0530
- Thread-topic: Scripting in quark...
Stefan,
Are you sure the script is not working at your end. Because I just
copied and pasted your script and it is perfectly working fine at my
end, except for the case that the folder you selected in turn contains
sub folders, and in that case you will have to make a recursive function
call.
Regards.
______________________________
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