Re: quark
Re: quark
- Subject: Re: quark
- From: "Dr Digby L. James" <email@hidden>
- Date: Mon, 6 Oct 2003 14:22:13 +0100
>
can anyone help with quark
>
With quark open I want to create a picture box,
>
import a tiff from another folder, print as a
>
file as an eps file, for later distilling
>
(separate program ) and repeat this for around
>
700 pages.
Sorry wasn't available to answer the phone. I'm not available for a while.
Here's my crude import script. Everyone else will
laugh at it's crudity, but it work. I've not got
as far as getting it to automatically set the
right number of pages (hence some of the
commented lines). Quark will not let you add more
than 100 pages at once, so a bit of arithmetic is
needed. I also haven't mastered getting
AppleScript to pick up a selected folder, so this
one's hard wired in.. It also assume that all the
files are named in sequence (Page_001.tiff, etc).
There is a simple way of getting all the contents
of a folder as a list which can then be
processed. Others can advise on that.
set NumberPages to display dialog "Total number
of pages?" default answer "2" buttons {"Cancel",
"OK"} default button "OK"
set NumberOfPages to text returned of NumberPages as number
tell application "QuarkXPress"
activate
set thepath to "Penny:Documents:Work in Progress :Davenant :"
--insert (NumberOfPages - 1) new page at
after page 1 of document 1 master "Main Master
Page" option 136
--insert (NumberOfPages - 1) new pages at
end of document master "A-Main Master Page"
-- set NumberOfPages to 190
repeat with i from 1 to NumberOfPages
tell page i of document 1
tell picture box 1
try
set image
1 to (thepath & "Page_" & i & ".tiff")
on error
set image
1 to (choose file with prompt "Please select the
file \"" & "Page_" & i & ".tiff" & "\"")
end try
end tell
end tell
end repeat
end tell
--
_________________
Dr Digby L. James
Quinta Press
http://www.quintapress.com
Meadow View
Weston Rhyn
Oswestry
Shropshire
England
SY10 7RN
Phone (44)(0)1691 778659
Mobile (44) (0)7970 678144
Fax (44)(0)1691 777638
_________________
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >quark (From: Peter Davenport <email@hidden>) |