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/viewtopic.php?t=1143&highlight=upload
anyone can help?
Replies
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.
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
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();