Re: quarkxpress
Re: quarkxpress
- Subject: Re: quarkxpress
- From: Hans Haesler <email@hidden>
- Date: Sat, 25 May 2002 20:58:59 +0200
On Fri, 24 May 2002, Rick Norman wrote:
>
This is how I import the pix.
Rick,
your script is doing too much wrong or unnecessary work.
Wrong: 'import file' doesn't even pass the syntax check (okay, maybe
this is made possible by "ScriptMaster XT"). Anyway: just use the
correct 'set image 1 to'.
Unnecessary: When you load an image (manually or by script), the
scale values are already {"100%", "100%"} and the angle is zero degrees.
No need to re-set any of them.
And I dont know why you set the offset to '-0.125"' (which is the
bleed of the picture box).
>
I'm sure that one of the gurus out there can
>
do it with less, which I would be very interested in seeing.
Have a look at this, please:
---
tell application "QuarkXPress 4.11"
activate
set properties of default document 1 to {page height:"11\"", page
width:"8.5\"", facing pages:false, top margin:"0\"", left margin:"0\"",
bottom margin:"0\"", right margin:"0\"", column count:1, gutter
width:"0.167\"", automatic text box:false}
make document at beginning
tell document 1
set view scale to fit page in window
tell page 1
make picture box at beginning with properties {bounds:{"-0.125\"",
"-0.125\"", "4.403\"", "6.153\""}}
tell picture box 1
set image 1 to "Hard Drive Name:Folder Name:File Name.tif"
end tell
end tell
end tell
end tell
---
1) The version of QXP is updated to 4.11: available since more than two
years, free, less buggy. Get it before it's too late!
2) The properties of the default document are set in one sweep. No need
to split it up in three commands. If your concern is to see everything
inside of the editor's window then cut the lines by inserting a continuation
symbol (= option-Return) _before_ a comma (or after a colon).
3) The image is imported by addressing the picture box and by setting its
image 1 to an existing file.
4) The angle, the scales and the offset are not modified.
If you need to do this then it would be more effectif by applying
them in one sweep: set properties to {scale:{90, 90}, offset:{...
Meanwhile, I hope that Patrick has managed to put 4 pictures in his
4 picture boxes...
---
Hans Haesler <email@hidden>
_______________________________________________
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.