Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
Autor |
Nachricht |
bixbixbix •-->

Anmeldedatum: 04.01.2006 Beiträge: 37
|
Verfasst am: 28.11.2008 - 18:04 Titel: Transmit: file upload |
|
|
Leute, ich bin wieder mal viel zu blöd. Ich versuche ein einfachstes Script für Transmit zu erstellen, das einfach nicht funzt.
Was ist habe ist folgendes
Code: | tell application "Transmit"
make new document at end
tell document 1
tell session 1
connect to favorite with name "Favoritenname"
try
-- evtl. repeat while ((get is connected of session of document 1) is {true})
repeat
upload item "Ordnername"
end repeat
end try
disconnect
end tell
end tell
end tell
|
Transmit öffnet und verbindet alles, aber der Ordner wird einfach nicht hochgeladen. [seufz]
Gruß, Bix. |
|
Nach oben |
|
 |
chebfarid •-->


Anmeldedatum: 10.02.2007 Beiträge: 106 Wohnort: Milano
|
Verfasst am: 28.11.2008 - 19:21 Titel: |
|
|
Was verbirgt sich denn hinter dem String "Ordnername" ?
Ich nehme mal an, daß Transmit sich, wie fast alle Mac-Programme, einen Aliaspfad erwartet (Festplatte:User:Ordner: ...)
Versuch's mal so:
Code: | -- Allererste Zeile:
set UpOrdner to (choose folder)
-- weiter mit Deinem Skript
-- (...)
upload UpOrdner -- anstelle von 'upload item "Ordnername"'
-- (...)
|
Good scripting
Farid _________________ Abends lustig morgens triste
Das ist Leben von Artiste |
|
Nach oben |
|
 |
bixbixbix •-->

Anmeldedatum: 04.01.2006 Beiträge: 37
|
Verfasst am: 29.11.2008 - 12:02 Titel: |
|
|
Nein, nein, das ist schon in Ordnung mit "Ordnername". Transmit ermöglicht die Arbeit mit den vom Programm angebotenen Favoriten. Die Verbindung wird ja auch hergestellt. Alleine es kommt nicht zum Upload.
Danke, Bix. |
|
Nach oben |
|
 |
chebfarid •-->


Anmeldedatum: 10.02.2007 Beiträge: 106 Wohnort: Milano
|
Verfasst am: 29.11.2008 - 19:48 Titel: |
|
|
Da wäre ich mir nicht so sicher; ein Beispiel, das ich bei MacTech gefunden habe:
Code: | set thePath to choose file with prompt "Please select an item to upload:" without invisibles
tell application "Transmit"
tell document 1
tell current session
upload item thePath with resume mode replace
end tell
end tell
end tell |
Ciao
Farid _________________ Abends lustig morgens triste
Das ist Leben von Artiste |
|
Nach oben |
|
 |
bixbixbix •-->

Anmeldedatum: 04.01.2006 Beiträge: 37
|
Verfasst am: 30.11.2008 - 10:50 Titel: |
|
|
das ist ja etwas anders. Ja, der Favoritenordner wird akzeptiert, aber das, was ich raufladen möchte wird ja nicht angenommen.
In Deinem Skript fehlt das Ziel. Wohin soll das item thePath geladen werden.
Ich versuche mal eine Kombination. Vielleicht ist es ja so, dass der Ordner, den ich raufladen möchte, nicht akzeptiert wird.
Danke, Bix.
(Ich melde mich wieder) |
|
Nach oben |
|
 |
|