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

Help: Script to find by label not working with quotes

Return to Member Forum

  • Author
    Posts
    • #77275

      So, this part of a larger script worked fine, until I needed to change the script label to include quotes:

      The script label of the text box is:
      editorial;editorial_main_story;copy;"‘"|CoverStoryTitle;title|CoverStoryTitle;"’"|CoverStoryTitle

      The JS is:
      app.documents[0].textFrames.itemByName("editorial;editorial_main_story;copy;\"‘\"|CoverStoryTitle;title|CoverStoryTitle;\"’\"|CoverStoryTitle").changeGrep();

      What’s going on?!

    • #77895
      Peter Kahrel
      Participant

      Out of context this doesn’t make much sense. What did the label look like before you added the quotes? And what exactly do you want to achieve?

    • #77896
      Peter Kahrel
      Participant

      Out of context this doesn’t make much sense. What did the label look like before you added the quotes? And what exactly do you want to achieve?

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads