• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: QuarkXPress Duping Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >QuarkXPress Duping Objects (From: Jason Bourque <email@hidden>)

  • Prev by Date: Re: Entourage : Returning info from multiple new messages
  • Next by Date: Re: Best way to tell if a file copy has finished.
  • Previous by thread: QuarkXPress Duping Objects
  • Next by thread: Scripting FileMaker
  • Index(es):
    • Date
    • Thread