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."); |
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
#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 | |
var doc = app.activeDocument; | |
doc.viewPreferences.rulerOrigin = RulerOrigin.SPREAD_ORIGIN; | |
doc.documentPreferences.allowPageShuffle = false; | |
cleanDocument(doc); |
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
// @includepath "~/Documents/;%USERPROFILE%Documents"; | |
// @include "basiljs/basil.js"; | |
// HOW TO USE: | |
// - to run the script, you first need to install basil.js: http://basiljs.ch | |
// - Make sure, you're on the first page of your doc | |
// - select the page item that you want to appear in the fore edge | |
// - rotate it accordingly | |
// - if using text, convert to outlines | |
// - run the script, enter the required # of pages |
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
size(512, 512); | |
background(255); | |
strokeWeight(20); | |
translate(width / 2, height / 2); | |
ellipse(0, 0, 400, 400); | |
stroke(255); |
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
tell application "Numbers" | |
set LinkRemoval to make new document | |
set theSheet to active sheet of LinkRemoval | |
tell table 1 of theSheet | |
set the value of cell 1 of column "A" to "From" | |
end tell | |
end tell |
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 | |
// use on some text frame with several text style ranges in the first line | |
// if the text range continues into the second line, only the range within the first line will be returned | |
var l = app.activeDocument.textFrames.firstItem().lines.firstItem(); | |
var lir = getLastInlineRange(l); | |
app.select(lir); | |
function getLastInlineRange(l) { | |
var ltsr = l.textStyleRanges.lastItem(); |
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
%YAML 1.2 | |
--- | |
# http://www.sublimetext.com/docs/3/syntax.html | |
name: ExtendScript | |
file_extensions: | |
- jsx | |
- jsxinc | |
scope: source.jsx | |
contexts: | |
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
const canvasScale = 1.06; | |
const landscapeRatio = 0.9; | |
const portraitRatio = 0.5; | |
const targetScale = 1.2; | |
const blurStrength = 12; | |
let blurFilters = []; | |
var anim = { | |
globalOffset: 0, | |
globalPos: 1, |
OlderNewer