• Apfeltalk ändert einen Teil seiner Allgemeinen Geschäftsbedingungen (AGB), das Löschen von Useraccounts betreffend.
    Näheres könnt Ihr hier nachlesen: AGB-Änderung
  • Das Monatsmotto Juli lautet -- Kitsch as Kitsch can -- Jeder von Euch kann dafür ganz individuell bestimmen, was für ihn Kitsch ist und ein Foto davon einsenden. Macht mit, traut Euch! --> Klick

Apple script move

erdtfgkuh

Gloster
Registriert
29.03.09
Beiträge
60
<div class="bbWrapper">Hallo <br /> <br /> ich habe ien kleine Programm geschrieben das bestimmte Filenamen aus einer Textdatei &quot;Texedit&quot; auslesen soll und die Files von A nach B zu verschieben, der Fehler leigt in dem move Befehl, ich kann dies nicht endgültig einkreisen.<br /> <br /> Informationen in Textedit<br /> CT_13.pdf<br /> CT_14.pdf<br /> <br /> Programm<br /> <br /> set vonPfad to &quot;/Users/xxxxxx/desktop/&quot; &amp; &quot;test.rtf&quot;<br /> set somefilepath to POSIX file &quot;/Users/xxxxxx/Desktop/&quot;<br /> set somefolderpath to POSIX file &quot;/Users/xxxxxx/&quot;<br /> <br /> tell application &quot;TextEdit&quot;<br /> activate<br /> open vonPfad<br /> set Inhalt to paragraph of text of front document<br /> <br /> tell application &quot;Finder&quot;<br /> repeat with theItem in Inhalt<br /> display dialog theItem<br /> --move file theItem of folder somefilepath to somefolderpath<br /> end repeat<br /> end tell<br /> end tell<br /> <br /> <br /> Ergebniss i.O. <br /> <br /> {&quot;CT_13.pdf<br /> &quot;, &quot;CT_14.pdf&quot;}<br /> <br /> Wenn jetzt verwende ich &quot;move file theItem of folder somefilepath to somefolderpath&quot; anstatt &quot;display dialog theItem&quot; und ich bekomme die Fehlermeldung:<br /> <br /> „Finder“ hat einen Fehler erhalten: „file &quot;CT_13.pdf<br /> &quot; of folder &quot;Desktop&quot; of folder &quot;xxxxxx&quot; of folder &quot;Users&quot; of startup disk“ kann nicht gelesen werden.<br /> <br /> wenn ich nur &quot;CT_13.pdf&quot; als input verwende funktioniert das Programm.<br /> <br /> Kann mir eventuell jemand weiter helfen an was es liegt.<br /> <br /> Danke im Voraus<br /> <br /> Götz</div>