• 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: Marquee selecting InDesign CS5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Marquee selecting InDesign CS5


  • Subject: Re: Marquee selecting InDesign CS5
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 09 Feb 2012 09:52:46 +1100

On 09/02/2012, at 7:10 AM, Houston, Brad wrote:

Does anyone know of a way to select multiple (or any) page objects, in InDesign CS5, within defined geometric bounds (i.e., mimicking the way you might marquee an area of a page to select everything that intrudes inside that marquee?

set {y1, x1, y2, x2} to {100, 100, 400, 400} -- area for selection
tell application "Adobe InDesign CS5"
tell page 1 of document 1
select (every page item where ¬
((item 1 of its geometric bounds < y2 and item 1 of its geometric bounds > y1) ¬
or (item 3 of its geometric bounds > y1 and item 3 of its geometric bounds < y2)) ¬
and ¬
((item 2 of its geometric bounds < x2 and item 2 of its geometric bounds > x1) ¬
or (item 4 of its geometric bounds > x1 and item 4 of its geometric bounds < x2)) ¬
)
end tell
end tell

-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: 
 >Marquee selecting InDesign CS5 (From: "Houston, Brad" <email@hidden>)

  • Prev by Date: Marquee selecting InDesign CS5
  • Next by Date: Re: Finder & Invisibles
  • Previous by thread: Marquee selecting InDesign CS5
  • Next by thread: Re: Indesign CS5 - getting width and height of selection?
  • Index(es):
    • Date
    • Thread