Skip to content

Instantly share code, notes, and snippets.

/*
Original Source:
https://twitter.com/erindale_xyz/status/1363298619659583497
With some modifications from me
*/
//Darken:
min(A, b)
@darkwark
darkwark / duplicateOnTop.jsx
Created November 13, 2014 11:27
Script duplicates selected layer and places it on the top of layers stack
/*
* Adobe Photoshop Script
*
* DESCRIPTION:
* Script duplicates selected layer and places it on the top of layers stack
*
* INSTALATION:
* To access script from "File > Scripts", place it into "Photoshop/Presets/Scripts" and restart your Photoshop
* You can also set up hotkey in "Edit > Keyboard Shortcuts..."
*
var color = app.foregroundColor.rgb,
output = "RGB("+
color.red + ", " +
color.green + ", " +
color.blue +
")";