Home Technical Talk

Uploading script for photoshop

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

  • Black_Dog
    Options
    Offline / Send Message
    Black_Dog polycounter lvl 17
    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.
  • Pedro Amorim
    Options
    Offline / Send Message
    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
  • HarlequiN
    Options
    Offline / Send Message
    HarlequiN polycounter lvl 18
    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();
Sign In or Register to comment.