• 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
InDesign CS5 find string in text frame
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InDesign CS5 find string in text frame


  • Subject: InDesign CS5 find string in text frame
  • From: Michael Tompsett <email@hidden>
  • Date: Fri, 01 Apr 2011 17:46:52 +0200

Hello - hopefully someone can help as I'm now stuck on this. It regards InDesign CS5. I want to be able to find a specific string of words within a text frame, though I want to be able to do this without using the Find Text Preferences approach.

I can get it to work if i am just finding one word, but if there is more than one word it doesn't work.

For example this works (given a text frame with text in that contains the word Example):

tell application "Adobe Indesign CS5"
tell active document
set mybox to selected
tell mybox
set myfind to object reference of every word whose contents = "Example"
end tell
end tell
end tell

However the same does not work (searching for "The Example", which is two words)

tell application "Adobe Indesign CS5"
tell active document
set mybox to selected
tell mybox
set myfind to object reference of every word whose contents = "The Example"
end tell
end tell
end tell


What i can't figure out is the correct phrasing for finding a string of words, i guess i should not be looking for the object reference of WORD, but nothing else i've tried seems to work. Many thanks for any help

_______________________________________________
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
  • Prev by Date: Re: Mail App - plain text
  • Next by Date: Re: Very Irritating Open Handler
  • Previous by thread: Re: Mail App - plain text
  • Next by thread: Re: Very Irritating Open Handler
  • Index(es):
    • Date
    • Thread