Re: Quick Quark Scripting Question
Re: Quick Quark Scripting Question
- Subject: Re: Quick Quark Scripting Question
- From: email@hidden
- Date: Mon, 24 Jun 2002 11:35:32 +0100
So simple but I couldn't see it!
That's exactly what I was after - thanks for that!
Steve
"Hevard, Inkognito" <email@hidden>
24/06/2002 11:30
To: email@hidden
cc:
Subject: Re: Quick Quark Scripting Question
>
I have a picture box on a page of specific dimensions (162mm by 72mm)
>
>
I have a piece of artwork that although the dimensions vary, they will
>
never be greater than 160mm by 70mm
>
>
Is there any way to script the box or the placing of the picture so that
>
the picture appears centrally instead of at the top left of the box (the
>
default)? I can do the maths if I know the dimensions of the picture but
I
>
can't find a way of obtaining this information in advance.
>
>
Any suggestions greatfully received.
Steve,
You have the choice of centered/exact fit/proportional fit
If I understand your question right, I think this should do what you
are looking for:
--start sample script
tell document 1 of application "QuarkXPress Passport? 4.11"
tell current box
set bounds of image 1 to centered --or whatever suits your need
end tell
end tell
--end sample
HTH,
Hevard
_______________________________________________
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.