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
// https://gist.github.com/joonaspaakko/df2f9e31bdb365a6e5df | |
// Finds all .ai files from the input folder + its subfolders and converts them to the version given below in a variable called "targetVersion" | |
// Tested in Illustrator cc 2014 (Mac) | |
// Didn't bother to do a speed test with my macbook air... | |
#target illustrator | |
// If set to false, a new file will be written next to the original file. |
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
// https://gist.github.com/joonaspaakko/1add5c6a905216740c9c922a657636e1 | |
#target photoshop | |
if ( app.activeDocument.activeLayer.typename == 'LayerSet' ) { | |
app.activeDocument.suspendHistory( "Select Child Layers.jsx", "init();" ); | |
} | |
function init() { | |
var doc = app.activeDocument; |
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
// Select Next Layer (invisible or not).jsx | |
// https://gist.github.com/joonaspaakko/048c9b58ccbb6e6f44c894bf4ce30b68 | |
nextLayer('down'); | |
// direction (↑): "up" or "above" | |
// direction (↓): "down" or "below" | |
function nextLayer( direction ) { | |
var doc = app.activeDocument; |
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
// Name: Export document for each layer inside selected group.jsx | |
// Formerly: Export Layers Inside Selected Group.jsx | |
// Description: Photoshop script that saves the whole document for each top level layer inside the selected group. | |
// Image example: https://user-images.githubusercontent.com/1164476/49152494-aef8af00-f31b-11e8-80ff-d774e3103eae.png | |
// https://gist.github.com/joonaspaakko/013a223e94ba0fb9a2a0 | |
#target photoshop |
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
/* | |
NOTE: | |
1. Makes the assumption that only one layer is selected (only really matters when going down) | |
2. Doesn't care if the adjacent layer is a group or not | |
*/ | |
var options = { | |
direction: 'up', | |
loop: true, | |
}; |
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
// https://gist.github.com/joonaspaakko/b878d993b038b98b8ca78cc859916af4 | |
// The idea is that it exports the work file and the production file (or a preview file) at the same time saving some time and effort. | |
// - This has been tested in Photoshop CC and Illustrator CC. It used to work in CS3, but I'm fairly sure I've changed the code enough at this point to break it for older versions. | |
// - Has a simple dialog where you can rename the file or leave it as it is. | |
// - If document has been saved, the script will suggest saving in the same path, otherwise it will default to what's set in the variable "newDocPath". | |
// - Photoshop saves .jpg and .psd | |
// - Illustrator saves .pdf and .ai and there's now the additional jpg option |
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
// Mark all Audible library books ON THE CURRENT PAGE as finished or unfinished | |
// The script is basically a macro: it works by emulating a button click and just automating it for every single book | |
function markAs(config) { | |
config = config || {}; | |
var i = 0; | |
var elements = $(config.finished ? ".mark-as-finished-button" : ".mark-as-unfinished-button"); | |
var l = elements.length; | |
(function fn() { | |
const item = elements[i++]; | |
$(item).find("button").click(); |
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 photoshop | |
// https://gist.github.com/joonaspaakko/347c270f15bc1d11efe9 | |
var colors = [ "#0033ff", "#9a3838", "#888888", "#a6ad1e" ]; | |
function init() { | |
var read = tempFile.read(), | |
color = colors[ read ]; |
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
// https://gist.github.com/joonaspaakko/f16b47be887a2058cd0c0ac6e7ab0343 | |
// The script doesn't check for page items inside the current master. | |
// That means the current master could be filled with all kinds of graphics and this script considers it an empty page. | |
var master; | |
if (app.documents.length > 0) init(); | |
function init() { |
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
// v.1.6. | |
// Batch Mockup Smart Object Replacement.jsx | |
// You'll need to incplude this file to another script file: | |
// #include "../script/Batch Mockup Smart Object Replacement.jsx" | |
// Check the example folders for a few real world examples. | |
// Minimal settings | |
/* |
NewerOlder