• 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: INDESIGN CS2: Altering a Text Selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: INDESIGN CS2: Altering a Text Selection


  • Subject: Re: INDESIGN CS2: Altering a Text Selection
  • From: Buzz Hill <email@hidden>
  • Date: Thu, 10 Aug 2006 18:36:13 -0700 (PDT)

> The following code snippet does not work, nor does
any variant I've
> tried specifically extracting references or object
references. Can
> someone please point me in the right direction?

> tell document 1
> set selection to text from character 1 of selection
to character -2
> of selection
> end tell
> --

tell application "Adobe InDesign CS2"

	--selection equals "the selection."

	text of selection
	----->{"the selection."}

	item 1 of (text of selection)
	----->"the selection."

	set item 1 of selection to ((characters 1 thru -2 of
(item 1 of (text of selection))) as text) as text

	text of selection
	----->{"the selection"}
end tell


Buzz
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: INDESIGN CS2: Altering a Text Selection
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Multicast Auto Start Applescript
  • Next by Date: Re: INDESIGN CS2: Altering a Text Selection
  • Previous by thread: Re: INDESIGN CS2: Altering a Text Selection
  • Next by thread: Re: INDESIGN CS2: Altering a Text Selection
  • Index(es):
    • Date
    • Thread