Skip to content

Instantly share code, notes, and snippets.

View jaysuthar's full-sized avatar

Jay jaysuthar

View GitHub Profile
@kshiteesh
kshiteesh / urlsafari
Last active July 17, 2025 04:59
This AppleScript saves all the tabs open in all Safari windows to a Markdown file.
(*
Export All Safari Tabs in All Open Windows to a Markdown File
July 13, 2015
// SCRIPT PAGE
http://hegde.me/urlsafari
// ORIGINAL SCRIPT ON WHICH THIS SCRIPT IS BUILT
http://veritrope.com/code/export-all-safari-tabs-to-a-text-file
@michaelchaize
michaelchaize / LayerPNG24.jsx
Created May 31, 2013 14:59
This is the JavaScript code used to control Photoshop. It exports the selected layer to a transparent PNG file.
#target photoshop
// EXPORT PNG 24 TRANSPARENT
// Function to launch the "Layer > Rasterize > with style"
// Produced with the JavaScript listener
function raterizeLayerStyle(){
var idrasterizeLayer = stringIDToTypeID( "rasterizeLayer" );
var desc5 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
@chrisdroukas
chrisdroukas / Export Groups to PSD
Created May 31, 2013 14:16
Exports selected groups as new PSDs. Via this Adobe Forums thread: http://forums.adobe.com/thread/791896
#target photoshop
main();
function main() {
if(!documents.length) return;
var doc = activeDocument;
var oldPath = activeDocument.path;
var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
dupLayers();