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
if ( app.documents.length > 0 ) { | |
if ( app.scriptPreferences.version >= 6 ) { | |
app.doScript( main, ScriptLanguage.JAVASCRIPT , [], UndoModes.ENTIRE_SCRIPT, "Search in masterpages" ); | |
} | |
else { | |
main(); | |
} | |
} else { | |
alert ( "No documents open!" ); | |
} |
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
GREP |
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
// text frame selected: | |
var frame = app.selection[0]; | |
var gap = frame.parentPage.bounds[2] - frame.parentPage.marginPreferences.bottom - frame.lines[-1].baseline; | |
NewerOlder