Hallo Leute,

ich würde gerne Fotos direkt aus Photoshop CS2 (Win XP) in einen vorgegebenen Ordner auf meinem FTP-Server laden.

Idealerweise möchte ich den Upload als letzten Schritt in eine Aktion einbinden und daraus ein Droplet erstellen.

So muss ich die Datei nur auf das Droplet ziehen und kurz darauf ist sie bearbeitet (durch die anderen Schritte der Aktion) im Web.

Dieses Droplet hätte auch noch weitere Vorteile für mich, aber das würde jetzt zu weit führen.

Im Netzt habe ich dies gefunden:
Code:
function BatchDefaults(ftpip,ftplogin,ftppass) 
{ 
   try 
   { 
      // fix users save path to be windows format 
      var slashes = new RegExp("\/","g"); 
      var fspath = savePath.replace(slashes,"/"); 
      var bspath = savePath.replace(slashes,"\\"); 

      // build ftp command file 
      var txt = new File(fspath + "/psupload.txt"); 
      txt.open("w"); 
      txt.writeln(ftplogin); 
      txt.writeln(ftppass); 
      txt.writeln("prompt"); 
      txt.writeln("cd products"); 

      // write a line for every file you want to upload 
      txt.writeln("send \"" + fspath + prodName + "_1.jpg\""); 
      txt.writeln("send \"" + fspath + prodName + "_2.jpg\""); 
      txt.writeln("send \"" + fspath + prodName + "_3.jpg\""); 
      txt.writeln("send \"" + fspath + prodName + "_4.jpg\""); 
      txt.writeln("send \"" + fspath + prodName + "_5.jpg\""); 

      txt.writeln("close"); 
      txt.writeln("quit"); 
      txt.close(); 

      // build batch file 
      var bat = new File(fspath + "/psupload.bat"); 
      bat.open("w"); 
      bat.writeln("ftp -s:\"" + bspath + "psupload.txt\" " + ftpip);   // run ftp upload 
      bat.writeln("del \"" + bspath + "psupload.txt\"");   // delete ftp txt file 
      bat.close(); 
          
      // run batch file 
      bat.execute(); 
   } 
    catch (e) 
    {   // display error 
      alert("Problem bulding FTP batch file! \r\r" + e); 
    } 
};
http://www.ps-scripts.com/bb/viewtopic.php?t=1143

Leider reicht mein know-how nicht aus, um das umzusetzen und an meine Bedürfnisse anzupassen.

Hoffe hier findet sich ein Skriptprofi, der mir aushelfen kann / mag.

Besten Dank!

Barkeeper



P.S.: Dies hier läuft wohl nur mit CS3:
http://www.ps-scripts.com/bb/viewtop...&highlight=ftp