Reply
Reply
 
Thread Tools Display Modes
Pedro Amorim's Avatar
Old (#1)
So, a friend of mine asked me if i could do a script for photoshop, kinda like an action for photoshop, where you just press a button (F5 for example) and photoshop automatically saves a jpg version of the file we are working and precedes to upload it to a webserver with a predefined name (he wants the same name for the file, in order to overwrite the previous version on the server). is there a way to do this?

i saw this site. but have no idea how to make it work
http://www.ps-scripts.com/bb/viewtop...ghlight=upload

anyone can help?
Weapons Artist @ Crytek UK
www.edgesize.com » pedro amorim portfolio
blog.edgesize.com » digital playground
Offline , veteran polycounter, 2,627 Posts, Join Date Mar 2005, Location Nottingham, UK Send a message via ICQ to Pedro Amorim Send a message via AIM to Pedro Amorim Send a message via MSN to Pedro Amorim Send a message via Skype™ to Pedro Amorim  
   Reply With Quote

Black_Dog's Avatar
Old (#2)
You could always do by hand what that script is doing programatically - write a shell script/batch file to do it, and call that from PS.

If the file location, name and server will always be the same, all you'll have to do in the PS script is save the file to the right place and run your .bat.
Offline , line, 62 Posts, Join Date Apr 2006,  
   Reply With Quote

Pedro Amorim's Avatar
Old (#3)
so, i did the bat script and it works, but i cant seem to call it from photoshop.

the bat script is this..

you have a script.bat with this inside

ftp -s:script.txt <SERVER>



and then you have a file called script.txt with this inside

USERNAME
PASSWORD
bin
put temp.jpg
bye



but somehow photoshop cant seem to run this bat. dont know why
Weapons Artist @ Crytek UK
www.edgesize.com » pedro amorim portfolio
blog.edgesize.com » digital playground
Offline , veteran polycounter, 2,627 Posts, Join Date Mar 2005, Location Nottingham, UK Send a message via ICQ to Pedro Amorim Send a message via AIM to Pedro Amorim Send a message via MSN to Pedro Amorim Send a message via Skype™ to Pedro Amorim  
   Reply With Quote

HarlequiN's Avatar
Old (#4)
So, does the Bat file run on it's own (without being called from Photoshop), or does the bat file open from Photoshop but not do anything (Which wouldn't be a PS issue)?

Also, how are you calling the BAT file? The way to run it would be:

var batpath=new Folder(BatchFilesPath);
var bat = new File(batpath + "/script.bat");
bat.execute();
Offline , spline, 246 Posts, Join Date Oct 2004, Location Champaign IL  
   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch