Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Applescript mit rsync-Fehler Quellpfad nicht gefunden

2 views
Skip to first unread message

Heiko Wetteborn

unread,
Jun 7, 2018, 5:24:29 AM6/7/18
to
Hi Leute,

Gebe ich Folgendes im Terminal von macOS 10.13 ein, erhalte ich keine
Fehlermeldung:

rsync -a /users/heiko/download /volumes/usb-drive/downloads

Der Kopiervorgang wird problemlos abgearbeitet.
Gebe ich das aber nun in folgendem Applescript ein, erhalte ich die
Fehlermeldung, dass von rsync der Quellpfad nicht gefunden werdenkann.
Warum?

Hier das Applescript:

set quellpfad to "/users/heiko/download"
set zielpfad to "/volumes/usb-drive/downloads"
set result to ""

set result to do shell script "rsync -a quellpfad zielpfad"

Irgendwie verstehe ich das nicht so ganz.
Ziel des Ganzen soll ein kleines Script sein, welches mir sämtliche
Änderungen im Download-Ordner als Sicherung auf einen USB-Stick kopiert.
Ich habe vor, das fertige lauffähige Script später dann als Ordneraktion
zu verwenden.



Gruß
Heiko


--
http://domicil6.de

Bernd Fröhlich

unread,
Jun 8, 2018, 2:23:45 AM6/8/18
to
Heiko Wetteborn <heik...@gmail.com> wrote:

> dung, dass von rsync der Quellpfad nicht gefunden werdenkann.
> Warum?
>
> Hier das Applescript:
>
> set quellpfad to "/users/heiko/download"

In "download" fehlt das "s".
Wenns das nicht war, versuchs zusätzlich mit nem grossen "D"

"/users/heiko/Downloads"

Michael Hawelka

unread,
Jun 10, 2018, 6:24:52 AM6/10/18
to
Heiko Wetteborn <heik...@gmail.com> wrote:

> set quellpfad to "/users/heiko/download"
> set zielpfad to "/volumes/usb-drive/downloads"
> set result to ""
>
> set result to do shell script "rsync -a quellpfad zielpfad"

Das kann ja nicht gehen.

Du gibst als Quellpfad ja nicht den Inhalt der Variable quellpfad an,
sondern den String "quellpfad".

set result to do shell script "rsync -a " & quellpfad & " " & zielpfad

und wie Bernd schon schrieb, fehlt das s bei downloads

Michi

Heiko Wetteborn

unread,
Jun 10, 2018, 12:25:48 PM6/10/18
to
Am 10.06.2018 12:24, schrieb Michael Hawelka:
> Heiko Wetteborn<heik...@gmail.com> wrote:
>
>> set quellpfad to "/users/heiko/download"
>> set zielpfad to "/volumes/usb-drive/downloads"
>> set result to ""
>>
>> set result to do shell script "rsync -a quellpfad zielpfad"
>
> Das kann ja nicht gehen.
>
> Du gibst als Quellpfad ja nicht den Inhalt der Variable quellpfad an,
> sondern den String "quellpfad".
>
> set result to do shell script "rsync -a "& quellpfad& " "& zielpfad
Danke. Genauso habe ich es auch gelöst.

Gruß
Heiko

0 new messages