• 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: "Gary Bielby" <email@hidden>
  • Date: Tue, 2 Jun 2009 10:58:37 +0100
  • Thread-topic: AppleScript-Users Digest, Vol 6, Issue 241

Hi Ed,
Yes that works great! ;-)

Thanks again.

-----Original Message-----
From:
applescript-users-bounces+gary.bielby=email@hidden.c
om
[mailto:applescript-users-bounces+gary.bielby=pressassociation.com@lists
.apple.com] On Behalf Of Stockly, Ed
Sent: 29 May 2009 23:16
To: email@hidden
Subject: Re: 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:
ressassociation.com
Archives: http://lists.apple.com/archives/applescript-users

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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Same code gives different answers in 2 different scripts
  • Next by Date: Re: AuthorEditor in InDesign Template
  • Previous by thread: Re: AppleScript Studio Application - Annoying Delays
  • Next by thread: How to check for and remove a photo from an iPhoto album
  • Index(es):
    • Date
    • Thread