Re: QuarkXPress Duping Objects
Re: QuarkXPress Duping Objects
- Subject: Re: QuarkXPress Duping Objects
- From: Jason Bourque <email@hidden>
- Date: Tue, 16 Aug 2005 11:49:25 -0400
Here is the code I am using
tell application "QuarkXPress 6.5"
-- Get Selection
tell document 1
set tool mode to drag mode
set vSelection to selection
set {x1, y1, x2, y2} to bounds as list
set x1 to (x1 as inch units) -- Left
set y1 to (y1 as inch units) -- Top
set x2 to (x2 as inch units) -- Right
set y2 to (y2 as inch units) -- Bottom
set x2 to (x2 + x1) -- Right
set y2 to (y2 + y1) -- Bottom
return {x1, y1, x2, y2}
-- set x1 to 0 -- Left
-- set y1 to 0 -- Top
-- return properties of vSelection
end tell
-- Make Temporary Document
make new document at beginning with properties {automatic text
box:false}
set vDocName to name of result
set x1 to (x1 as inch units) -- Left
set y1 to (y1 as inch units) -- Top
set x2 to (x2 as inch units) -- Right
set y2 to (y2 as inch units) -- Bottom
-- Copy Selection to Temp Document
set vDupObjects to duplicate vSelection to beginning of page 1 of
document 1
move vDupObjects to bounds of {x1, y1, x2, y2}
return
tell me to srSavePagesAsEps(vDocName, {1}, false, (path to desktop) as
string)
-- Close Temp Document
-- close document vDocName without saving
end tell
Jason
On 8/14/05 9:35 PM, "Jason Bourque" <email@hidden> wrote:
> Hello,
>
> I am trying to duplicate a selection to a newly created document.
>
> My problem.
> If the selection is on the left page of a spread and I copy it to the new
> document it is placed on the page. But if the selection is on the right page
> of the spread I copy it ends up off the page on the right.
>
> I tried moving the resulting duplication but can't get it on the page.
>
> Any ideas?
>
> Thanks,
>
> Jason Bourque
>
>
> _______________________________________________
> 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
_______________________________________________
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