Eurokicker
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 15.04.2008, 18:07   #1
TP-Senior
 
Registriert seit: Feb 2002
Ort: Deutschland
Barkeeper macht alles soweit korrekt

[CS2] FTP-Upload via Skript / Plugin direkt aus PS


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
__________________
Individualität ist der Unterschied zwischen Kunst und Kompetenz.
Barkeeper ist offline   Mit Zitat antworten


Antwort

  Aktuelles Thema
  TP Hilfe Forum > Grafik & Multimedia > Photoshop
[CS2] FTP-Upload via Skript / Plugin direkt aus PS [CS2] FTP-Upload via Skript / Plugin direkt aus PS
« Sind das Ebenen? | Text flimmert »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 00:22 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67