Created
November 8, 2011 23:44
-
-
Save dancrew32/1349735 to your computer and use it in GitHub Desktop.
search and replace text nodes in indesign
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var aintShit = NothingEnum.nothing; | |
function changeShit() { | |
var from = prompt('Change:', ''); | |
var to = prompt('To:', ''); | |
app.findGrepPreferences.findWhat = from; | |
app.changeGrepPreferences.changeTo = to; | |
app.documents.item(0).changeGrep(); | |
} | |
function destroy() { | |
app.findGrepPreferences = aintShit; | |
app.changeGrepPreferences = aintShit; | |
} | |
function init() { | |
destroy(); | |
changeShit(); | |
destroy(); | |
} | |
init(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment