• 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: AppleScript-Users Digest, Vol 6, Issue 241
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-Users Digest, Vol 6, Issue 241


  • Subject: Re: AppleScript-Users Digest, Vol 6, Issue 241
  • From: "Stockly, Ed" <email@hidden>
  • Date: Fri, 29 May 2009 15:15:35 -0700
  • Thread-topic: AppleScript-Users Digest, Vol 6, Issue 241

> Got this working - does it look OK?

I couldn't get the duplicate command to work on CS2 (don't hvve CS3)

But this works using GUI scripting...

HTH,

ES

tell application "Adobe InDesign CS2"
   activate
   set boxName to "pic1"
   set MyRectangles to page item 1 of document 1
   set MyRectangle to item 1 of MyRectangles
   select MyRectangle
   tell application "System Events"
      keystroke "c" using command down
   end tell
   set the active document to document 2
   tell application "System Events"
      keystroke "v" using command down
   end tell
   set MyTargetRectangles to page item 1 of document 2
   set MyTargetRectangle to item 1 of MyTargetRectangles
   set theTargetPage to parent of MyTargetRectangle
   set {y, x, l, h} to geometric bounds of MyTargetRectangle
   select MyTargetRectangle
   set MyTargetRectangleCopy to the selection
   move MyTargetRectangleCopy to {x, y}
end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Is this a major bug or not?
  • Next by Date: AppleScript Studio Application - Annoying Delays
  • Previous by thread: Rép: Is this a major bug or not?
  • Next by thread: AppleScript Studio Application - Annoying Delays
  • Index(es):
    • Date
    • Thread