Skip to main content
Participant
January 26, 2019
Answered

Find/Replace format using Applescript

  • January 26, 2019
  • 1 reply
  • 1532 views

Hi All,

Can I use applescript to automate find/replace format? I know how to find/replace text.

I am creating a script for a user to choose an InDesign doc and a Rich Text format file, then place the text in the doc.

When I place text in a text frame, it comes in Times font, Regular, Italics, Bold and Bold Italics.

I want to replace

1.     Times Regular with Palatino Regular,

2.     Times Italics with Palatino Italics,

3.     Times Bold with Palatino Bold,

4,     Times Bold Italics with Palatino Bold Italics.

I am using InDesign CS 6, on Mac OSX.

Thanks

Willis.

This topic has been closed for replies.
Correct answer Manan Joshi

In order to read on how to use FindChangeList script you can look at the following articles

https://indesignsecrets.com/a-major-job-gets-easier-with-grep-and-findchangebylist.php

https://indesignsecrets.com/tag/findchangebylist

-Manan

1 reply

Community Expert
January 26, 2019

Why only Applescript? Javascript can also work on MAC OS with the added benefit that it can run on Windows as well. However i think you won't have to write a script, you could use the FindChangeByList.applescript or FindChangeByList.jsx shipped with InDesign itself. You can get access to them from the scripts panel. See the screenshot below

-Manan

-Manan
Manan JoshiCommunity ExpertCorrect answer
Community Expert
January 26, 2019

In order to read on how to use FindChangeList script you can look at the following articles

https://indesignsecrets.com/a-major-job-gets-easier-with-grep-and-findchangebylist.php

https://indesignsecrets.com/tag/findchangebylist

-Manan

-Manan
willisbarAuthor
Participant
January 26, 2019

Hi,

Thanks for your response and the information. Will let you know how it turns out.

I am not a programmer, I don't know javascript and more familiar with applescript as its more easier to understand from it's English like syntax. Javascript maybe useful but I am not sure about it's learning curve.

Thanks again.