Solo hay que copiarlos a:
Windows:
C:\programa files\Adobe\Photoshop cs5\presets\scripts\.
OSX (en Mac no lo he podido probar aun):
Applications> Photoshop cs5> presets> scripts.
Los scripts:
Save as psd (lo guardamos con extensión.jsx):
If(app, documents, length > 0){.
// get the name of the document.
Var fname = app, activedocument, name.
//strip the ext.
Fname, match(/(.*)(\.[\.]+)/)? Fname = fname, match(/(.*)(\.[\.]+)/):fname = [fname, fname].
// add the desired ext.
Savename = fname[1]+.psd.
// create a reference the a file in the dessired folder - Here it the desktop.
Var myfile = new file (~/desktop/+savename).
//get a reference todo the name the user selected.
Var savefile = myfile, savedlg(undefined,Photoshop:*.psd).
// if the user didnt cancel save the file with the save options - Here it default psd options.
If(savefile)app, activedocument, saveas(savefile, new Photoshopsaveoptions()).
}
.
Save as (*.png) (lo guardamos con extensión.jsx):
If(app, documents, length > 0){.
// get the name of the document.
Var fname = app, activedocument, name.
//strip the ext.
Fname, match(/(.*)(\.[\.]+)/)? Fname = fname, match(/(.*)(\.[\.]+)/):fname = [fname, fname].
// add the desired ext.
Savename = fname[1]+.png.
// create a reference the a file in the dessired folder - Here it the desktop.
Var myfile = new file (~/desktop/+savename).
//get a reference todo the name the user selected.
Var savefile = myfile, savedlg(undefined,Photoshop:*.png).
// if the user didnt cancel save the file with the save options - Here it default (*.png) options.
If(savefile)app, activedocument, saveas(savefile, new pngsaveoptions()).
}.
.
Save as (*.jpg) (lo guardamos con extensión.jsx):
If(app, documents, length > 0){.
// get the name of the document.
Var fname = app, activedocument, name.
//strip the ext.
Fname, match(/(.*)(\.[\.]+)/)? Fname = fname, match(/(.*)(\.[\.]+)/):fname = [fname, fname].
// add the desired ext.
Savename = fname[1]+.jpg.
// create a reference the a file in the dessired folder - Here it the desktop.
Var myfile = new file (~/desktop/+savename).
//get a reference todo the name the user selected.
Var savefile = myfile, savedlg(undefined,Photoshop:*.jpg).
// if the user didnt cancel save the file with the save options - Here it default (*.jpg) options.
If(savefile)app, activedocument, saveas(savefile, new jpegsaveoptions()).
}.
.
Luego le asignamos los hotkeys que queramos, yo uso desesperados:
Ctrl+shift+s guardar psd.
Ctrl+shift+1 guardar png.
Ctrl+Shift+º guardar jpg.
Sino, en file > scripts los tenemos disponibles también.
Tags de búsqueda:
Photoshop save as dont work solution.