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
/* | |
This script resizes every layer within the active document. | |
How to use: | |
- Photoshop script ( cs3+ ) | |
- Put in {photoshop_root}/presets/scripts/Resize Each Layer.jsx | |
- Run from: File > Scripts > Resize Each Layer | |
- ..or save the file where ever you want and run from there with: File > Scripts > Browse... | |
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
/* | |
Author: https://github.com/joonaspaakko | |
Gist: https://gist.github.com/joonaspaakko/09e8e2a218038e15344d | |
<javascriptresource> | |
<name>Menu=Selected Layer Comps to PSD...</name> | |
<category>layercomps</category> | |
</javascriptresource> |
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
// Version 2.2 | |
// https://gist.github.com/joonaspaakko/efc6eb11759965d54b20 | |
// ************* | |
// Changelog: | |
// ************* | |
// v.2.2. | |
// - Changed some of the wording in the output. | |
// | |
// v.2.1. |
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
// https://gist.github.com/joonaspaakko/898394cf2b46ae7b6ad7 | |
#target photoshop | |
// If there are any documents open, run the code... | |
// ================================================= | |
if ( app.documents.length > 0 ) { | |
// Used later on when the layers are duplicated back to the original document. | |
// =========================================================================== |
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
// Launch application from Illustrator | |
var external_app = new File("/Applications/Better Rename 9.app"); | |
external_app.execute(); |
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/ace1ec3455b6959dc611 | |
#target photoshop | |
// If there are any documents open, run the code... | |
// ================================================= | |
if ( app.documents.length > 0 ) { | |
// Used later on when the layers are duplicated back to the original document. | |
// =========================================================================== |
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
#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
var doc = app.activeDocument; | |
var fileName = doc.activeLayer.name; | |
var outputLocation= File( doc.path + "/" + fileName ); | |
save( outputLocation ); | |
function save( outputLocation ) { | |
var saveOptions = new ExportOptionsSaveForWeb; |
OlderNewer