Automatisches Mounten unter macOS

Hallo,

Ich habe mir eine “My Cloud Home” gekauft und funktioniert auf Anhieb gut. Nur eine Sache bereitet mit Probleme: Ich möchte darauf Sachen ablegen, die viel Platz brauchen, z.B. iTunes Mediathek und Fotos Bibliothek. Damit die Programm auch sicher drauf zugreifen können sollte das Laufwerk direkt beim Login verbunden werden. Für die “My Cloud” ohen Home habe ich dazu eine Möglichekit gefunden. Bei meiner “My Cloud Home” muß ich dazu erst die WD Discovery App öffnen und dort das Laufwerk anklicken, dann wird es verbunden und ist im Finder verfügbar.

Nun, wie kann ich das automatisch beim Login machen? Gibt es dafür eine Lösung?

MfG
Gerhard Mayer

Ja gibt es: (leider nur auf english)

Here is how I am dealing with it.

Go to your home folder ~ and create a folder named Server. Open the newly created Server folder and make another folder named Drive.

Then launch Applescript Editor and create a new script like so:

do shell script “mount_afp afp://user:password@ip_address/Drive ~/Server/Drive”

You will need to enter your particulars here. Example : “mount_afp afp://bob:xyz123@192.168.1.100/bob ~/Server/Drive”

Save your script as an application.

Open System Preferences - User & Groups - Login Items. Drag your script application into the box for automatic login items. Reboot.

Your drive should be on your desktop.

Good luck.