RE: In Design - Copy/Paste image without original file
RE: In Design - Copy/Paste image without original file
- Subject: RE: In Design - Copy/Paste image without original file
- From: "Gary Bielby" <email@hidden>
- Date: Fri, 29 May 2009 16:02:44 +0100
- Thread-topic: In Design - Copy/Paste image without original file
Got this working - does it look OK?
property myDocuments : {}
set boxName to "pic1"
tell application "Adobe InDesign CS3"
-- Source
set MyRectangles to page item boxName of document 1
set MyRectangle to item 1 of MyRectangles
set thePage to parent of MyRectangle
set thePageNumber to name of thePage
-- Target
set MyTargetRectangles to page item boxName of document 2
set MyTargetRectangle to item 1 of MyTargetRectangles
set theTargetPage to parent of MyTargetRectangle
set theTargetPageNumber to name of theTargetPage
set {y, x, l, h} to geometric bounds of MyTargetRectangle
-- Duplicate onto document 2
set MyTargetRectangleCopy to duplicate MyRectangle to page
theTargetPageNumber of document 2
-- Delete old target
delete MyTargetRectangle
-- Move new target to old targets place
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