Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Search scope in Applescript

Return to Member Forum

  • Author
    Posts
    • #61978

      I'm trying to write a script that first involves using a GREP search to pull out the text I need to work on. I'd like to be able to limit this search to selected text, or the current story, rather than the entire document. Unfortunately I can't find a way to specify the scope of the GREP search. The dictionary says that 'find grep' is supported by application and document (only), and it definitely is true that 'tell selection to find grep' doesn't work.

      Manually setting the scope in the Find/Change dialog before running the script doesn't seem to work either. Does anyone know of any other way of setting it?

      PS Yes I know this can be done in Javascript. Trouble is I don't know Javascript!

    • #61979

      OK, still haven't found a way to get the grep to work on a selection, but it will (although undocumented) work on a story.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Forum Ads