• 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: In Design - Copy/Paste image without original file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: In Design - Copy/Paste image without original file (From: "Stockly, Ed" <email@hidden>)
 >RE: In Design - Copy/Paste image without original file (From: "Gary Bielby" <email@hidden>)

  • Prev by Date: Re: Is this a major bug or not?
  • Next by Date: Re: Is this a major bug or not?
  • Previous by thread: RE: In Design - Copy/Paste image without original file
  • Next by thread: Failed attempt to select a particular mailbox in Mail.app
  • Index(es):
    • Date
    • Thread