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 1.1. | |
// Compare Selected Comps.jsx | |
// https://gist.github.com/joonaspaakko/adbe208a867f8681afa86032f91f5099?ts=2 | |
// ######### | |
// Changelog | |
// ######### | |
// v.1.1. | |
// - Tested in Photoshop CC 2019 |
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.1.0. | |
// Page Numbers To Percentages.jsx | |
// https://gist.github.com/joonaspaakko/6628e2b6252d622b1b7f7eba601f6c91 | |
// You may want to save before running the script. Every single | |
// time you run the script, all text frames that are inside a | |
// master page or nested master pages will be torn out (overridden). | |
// The script assumes the starting point is this: | |
// 1. You have a designated layer for the page numbers (Layer name defined below↓). |
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 | |
var savePSD = false; // If set true the psd document is saved every time the script runs... | |
var folderName = ' (Frames)'; | |
try { | |
var doc = app.activeDocument; | |
var fileExists = false; | |
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
// Test file: | |
// ==================================== | |
// https://www.dropbox.com/s/dokdemxve0wd6yp/singleline%20or%20multiline%20text%20-%20test.psd?dl=0 | |
// My results: | |
// ==================================== | |
// (TRUE) 1. Singleline Point text | |
// (TRUE) 2. Singleline Paragraph text | |
// (FALSE) 3. Multiline Point text.Forced linebreak | |
// (FALSE) 4. Multiline Paragraph text. No forced line breaks. |
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
/* | |
Code for Import https://scriptui.joonas.me — (Triple click to select): | |
{"activeId":1,"items":{"item-0":{"id":0,"type":"Dialog","parentId":false,"style":{"text":"Import Multiple PDF pages","preferredSize":[0,0],"margins":16,"orientation":"row","spacing":10,"alignChildren":["left","top"]}},"item-1":{"id":1,"type":"Panel","parentId":20,"style":{"text":"Page Selection","preferredSize":[0,205],"margins":10,"orientation":"column","spacing":10,"alignChildren":["left","top"],"alignment":null}},"item-2":{"id":2,"type":"StaticText","parentId":1,"style":{"text":"Import PDF Pages:","justify":"left","preferredSize":[0,0],"alignment":null}},"item-3":{"id":3,"type":"EditText","parentId":6,"style":{"text":"1","preferredSize":[60,0],"alignment":null}},"item-4":{"id":4,"type":"StaticText","parentId":6,"style":{"text":"thru","justify":"left","preferredSize":[0,0],"alignment":null}},"item-5":{"id":5,"type":"EditText","parentId":6,"style":{"text":"1","preferredSize":[60,0],"alignment":null}},"item-6":{"id":6,"type":"Group"," |
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
/* | |
Code for Import https://scriptui.joonas.me — (Triple click to select): | |
{"activeId":6,"items":{"item-0":{"id":0,"type":"Dialog","parentId":false,"style":{"text":"Export Layers Inside Selected Group","preferredSize":[0,0],"margins":16,"orientation":"column","spacing":10,"alignChildren":["center","top"]}},"item-1":{"id":1,"type":"Checkbox","parentId":6,"style":{"text":"PSD","preferredSize":[0,0],"alignment":null}},"item-2":{"id":2,"type":"Checkbox","parentId":6,"style":{"text":"TIFF","preferredSize":[0,0],"alignment":null}},"item-3":{"id":3,"type":"Checkbox","parentId":6,"style":{"text":"JPEG","preferredSize":[0,0],"alignment":null,"checked":true}},"item-4":{"id":4,"type":"Checkbox","parentId":6,"style":{"text":"PNG","preferredSize":[0,0],"alignment":null}},"item-5":{"id":5,"type":"Checkbox","parentId":6,"style":{"text":"PDF","preferredSize":[0,0],"alignment":null}},"item-6":{"id":6,"type":"Panel","parentId":9,"style":{"text":"File format","preferredSize":[0,0],"margins":10,"orientation":"row","spacing":10, |
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
// 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
// https://gist.github.com/joonaspaakko/e8b5d577953e25c0a86903a76a7f4bba | |
#target photoshop | |
var doc = app.activeDocument; | |
var layerParent = doc.activeLayer.parent; | |
if ( layerParent !== doc ) doc.activeLayer = layerParent; |
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/d4449fd5ef211df7850cab748bf9b8f6 | |
#target photoshop | |
if ( app.activeDocument.activeLayer.parent !== app.activeDocument ) { | |
app.activeDocument.suspendHistory( "Select Sibling Layers.jsx", "init();" ); | |
} | |
function init() { | |
var doc = app.activeDocument; |