Skip to main content
Participant
September 4, 2014
Question

Can I create contractions throughout a document? (e.g., It is --> It's)

  • September 4, 2014
  • 1 reply
  • 599 views

My company recently updated it's style guidelines. Previously, we couldn't use contractions, but now we are. So when I update our documents, I have to go through and change "It is" to "It's", "you are" to you're" and "We are" to "We're", etc, etc.

Is there a script to make this easier? It is really tedious right now.

I've been using find/replace which helps somewhat. But is it possible to script something that would make it even easier?

This topic has been closed for replies.

1 reply

Jongware
Community Expert
Community Expert
September 4, 2014

Use the FindChangeByList script from the Sample Scripts folder. Its (not "it's") syntax is described in the sample txt document. Make sure you are using tabs to separate the items, though, as a common mistake is to use regular spaces.

Participant
September 4, 2014

OH thank you! I think this is exactly what I need.

However, I get an error -2741 when I run the script. Any ideas what I'm doing wrong?

Here's what I created (simple one line for now):

text{find what:”You are”}{change to:”You’re”}{include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}Find all You are and replace with You’re.
Participant
September 4, 2014

Ah! I found the error! My text editor wants to replace the dumb quotes with smart quotes. When I disable that in preferences, and use dumb quotes, then the script works like a charm!