Last active
February 11, 2022 22:34
-
-
Save Arahnoid/c1e95fb2e5511340682e to your computer and use it in GitHub Desktop.
[Change document color mode] Change color mode of document in photoshop #Photoshop
This file contains hidden or 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
// change color mode of document in photoshop | |
// http://ps-scripts.com/bb/viewtopic.php?f=9&t=3158&start=0 | |
var doc = activeDocument; | |
var ext= doc.name.toLowerCase().match(/[^\.]+$/); | |
if(doc.mode !=DocumentMode.CMYK && ext == "tif"){ | |
doc.changeMode(ChangeMode.CMYK); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment