Re: AppleScript-Users Digest, Vol 6, Issue 241
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