Viele Verzeichnisse unter /Volumes/ - warum?

Kryptaesthesie

Kryptaesthesie

Aktives Mitglied
Thread Starter
Dabei seit
17.05.2004
Beiträge
576
Reaktionspunkte
6
Wünsche einen schönen Sonntag :)

Habe da mal eine Frage ...
Ich mounte ein paar Laufwerke meines NAS mit einem Applescript (s. unten).
Wenn ich jetzt mal in das Verzeichnis /Volumes/ schaue, dann sehe ich jede Menge Verzeichnisse (s. Screenshot). Wie kommt das? Ist das in Ordnung so? Oder ist an meinem Script irgendwas nicht in Ordnung?

Evtl. wisst ihr, wie es zu den vielen Verzeichnissen kommt!
Danke schon mal für eure Hilfe :)


Gruß
Gerrit




Code:
try
	with timeout of 180 seconds
		set t to do shell script "ping -c 1 192.168.1.2"
		if t contains "0% packet loss" then
			tell application "Finder"
				
				activate
				mount volume "afp://myuser:pwxyz@192.168.1.2/public"
				
				activate
				mount volume "afp://myuser:pwxyz@192.168.1.2/Moviearchiv"
				
				activate
				mount volume "afp://myuser:pwxyz@192.168.1.2/Musikarchiv"
				
			end tell
		end if
	end timeout
end try
 

Anhänge

  • Bild 2.jpg
    Bild 2.jpg
    37,2 KB · Aufrufe: 52
die sind von fehlgeschlagenen mounts über...
solltest du mal von hand löschen...

warum aktivierst du den finder vor jedem mount?
vielleicht solltest du auch mal die mounts in try blöcke packen...
 
Danke für die Info! :)
Habe mein Script jetzt auch noch mal umgebaut (s. unten).
Aber leider hatte ich gerade schon wieder mal das Phänomen, dass da Verzeichnisleichen lagen. Aber ich verstehe nicht warum?! Mein NAS ist durchgehend verfügbar und ich immer wenn ich das Script ausgeführt habe, waren meine Mounts auch auf dem Schreibtisch sichtbar und erreichbar.

Komische Sache das!


Code:
set m_musikarchiv to true
set m_moviearchiv to true
set m_programmarchiv to true
set m_public to true
set m_softwareentwicklung to true
set m_backupimac to true
set m_download to false



try
	with timeout of 180 seconds
		set t to do shell script "ping -c 1 192.168.1.2"
		if t contains "0% packet loss" then
			tell application "Finder"
				
				if m_backupimac is true then
					try
						mount volume "afp://myuser:mypassword@192.168.1.2/Backup_iMac"
					end try
				end if
				
				if m_musikarchiv is true then
					try
						mount volume "afp://myuser:mypassword@192.168.1.2/Musikarchiv"
					end try
				end if
				
				if m_moviearchiv is true then
					try
						mount volume "afp://myuser:mypassword@192.168.1.2/Moviearchiv"
					end try
				end if
				
				if m_programmarchiv is true then
					try
						mount volume "afp://myuser:mypassword@192.168.1.2/Programmarchiv"
					end try
				end if
				
				if m_softwareentwicklung is true then
					try
						mount volume "afp://myuser:mypassword@192.168.1.2/Softwareentwicklung"
					end try
				end if
				
				if m_public is true then
					try
						mount volume "afp://myuser:mypassword@192.168.1.2/public"
					end try
				end if
				
				if m_download is true then
					try
						mount volume "afp://myuser:mypassword@192.168.1.2/download"
					end try
				end if
				
			end tell
		end if
	end timeout
end try
 
Zurück
Oben Unten