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
#target InDesign | |
var userOR = app.generalPreferences.openRecentLength; | |
app.generalPreferences.openRecentLength = 0; | |
app.generalPreferences.openRecentLength = userOR; |
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
#target InDesign | |
#targetengine "removeRecentItems" | |
var menuName = "Remove Recent"; | |
var removeAction = app.scriptMenuActions.add(menuName); | |
removeAction.eventListeners.add("onInvoke", removeRecentItems); | |
removeAction.eventListeners.add("beforeDisplay", recentAvailable); | |
var mainMenu = app.menus.itemByName("$ID/Main"); |
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
// fits the firstLineIndent of a paragraph to the end of the previous paragraph | |
// as asked here: https://graphicdesign.stackexchange.com/questions/62916/ | |
#target InDesign | |
var defaultIndent = 5; | |
//Checks if a text frame with 2 or more paragraphs was selected. | |
if (app.selection.length < 1 || !(app.selection[0].parentStory.paragraphs.length > 1)) { | |
alert("Error\nSelect a text frame with at least 2 paragraphs and try again."); |
NewerOlder