--FindChangeList.txt --A support file for the InDesign AppleScript FindChangeByList.applescript -- --This data file is tab-delimited, with carriage returns separating records. -- --The format of each record in the file is: --findTypefindPropertieschangePropertiesfindChangeOptionsdescription -- --Where: -- is a tab character --findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use). --findProperties is a properties record (as text) of the find preferences. --changeProperties is a properties record (as text) of the change preferences. --findChangeOptions is a properties record (as text) of the find/change options. --description is a description of the find/change operation -- --Very simple example: --text {find what:"--"} {change to:"^_"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all double dashes and replace with an em dash. -- --More complex example: --text {find what:"^9^9.^9^9"} {applied character style:"price"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find $10.00 to $99.99 and apply the character style "price". -- --All InDesign search metacharacters are allowed in the "find what" and "change to" properties. -- grep {find what:" +"} {change to:" "} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all double spaces and replace with single spaces. grep {find what:"\r "} {change to:"\r"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all returns followed by a space and replace with single returns. grep {find what:" (?=\r)"} {change to:""} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all returns preceded by a space and remove the space. grep {find what:"\t\t+"} {change to:"\t"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all double tab characters and replace with single tab characters. grep {find what:"\r\t"} {change to:"\r"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all returns followed by a tab character and replace with single returns. grep {find what:"\t(?=\r)"} {change to:""} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all returns preceded by a tab character and remove the tab character. text {find what:" - "} {change to:"^="} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all space-dash-space and replace with an en dash. text {find what:"--"} {change to:"^_"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all dash-dash and replace with an em dash. text {findWhat:"« "} {changeTo:"«^<"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:false, wholeWord:false} Remplace guillemet-ouvrant-espace par guillemet-ouvrant-espace-fine. text {findWhat:" »"} {changeTo:"^<»"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:false, wholeWord:false} Remplace espace guillemet-fermant par espace-fine-guillemet-fermant. grep {find what:" [?]"} {change to:"~<[?]"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all space-question mark and replace with a thin space-question mark. text {find what:"[?]"} {change to:"?"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all brackets-question marks-brackets and replace with a question mark. grep {find what:" [!]"} {change to:"~<[!]"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all space-exclamation mark and replace with a thin space-exclamation mark. text {find what:"[!]"} {change to:"!"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all brackets-exclamation-brackets and replace with a exclamation mark. grep {find what:" [:]"} {change to:"~<[:]"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all space-colun and replace with a thin space-colun mark. text {find what:"[:]"} {change to:":"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all brackets-colun-brackets and replace with a colun mark. grep {find what:" [;]"} {change to:"~<[;]"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all space-semi colun and replace with a thin space-semi colun mark. text {find what:"[;]"} {change to:";"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all brackets-percentage-brackets and replace with a percentage. grep {find what:" [%]"} {change to:"~<[%]"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all space-semi colun and replace with a thin space-semi colun mark. text {find what:"[%]"} {change to:"%"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all brackets-percentage-brackets and replace with a percentage.