Re: Marquee selecting InDesign CS5
Re: Marquee selecting InDesign CS5
- Subject: Re: Marquee selecting InDesign CS5
- From: "Houston, Brad" <email@hidden>
- Date: Tue, 14 Feb 2012 11:49:30 -0500
- Acceptlanguage: en-US
- Thread-topic: Marquee selecting InDesign CS5
Title: Re: Marquee selecting InDesign CS5
Hi tx,
Yes I did, and thank you Shane. Sorry I didn’t respond. Your solution works.
I’m surprised there’s no direct command in the ilk of “set geometric bounds of selection to ...”, but such is life/applescript.
Brad
On 2/14/12 3:24 AM, "Shane Stanley" <email@hidden> wrote:
On 14/02/2012, at 9:10 PM, email@hidden wrote:
Did you get a response on your question, since I am also interested in the outcome.
He did -- I posted this:
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
The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If
the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have
received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. The McGraw-Hill Companies, Inc. reserves the right, subject to applicable local law, to monitor, review and process the content
of any electronic message or information sent to or from McGraw-Hill e-mail addresses without informing the sender or recipient of the message. By sending electronic message or information to McGraw-Hill e-mail addresses you, as the sender, are consenting
to McGraw-Hill processing any of your personal data therein.
_______________________________________________
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