netzlaufwerk und mehrere benutzer

krobi

Neues Mitglied
Thread Starter
Dabei seit
01.11.2005
Beiträge
15
Reaktionspunkte
0
hey

ja schon wieder eine frage, ich hab ein autostart script was mit meine time capsule automatisch verbindet das mach ich mit mount volume usw blabla

mein profil wird immer standardmässig geladen und somit die time capsule verbunden, jetzt aber problem wenn meine freundin ihr profil aufruft (wo auch das script läuft) dann funktioniert bei ihrn entweder das laufwerk nicht oder bei mir.

dann hat einer von uns beiden zwei laufwerke auf den desktop einmal die time capsule und das zweite auch aber mit einem so einem minus zeichen im symbol.

ich hab versucht das zu umgehen indem ich checke ob das laufwerk schon da ist und wenn es da ist soll es hdiutil mit eject und force und admin rechten auswerfen.

nur ist das nicht die lösung, auch wenn ich checken lasse ob das "zweite" (ghost) laufwerk da ist und das auch auswerfe (mit hdiutil)

ist das problem trotzdem da im schlimmsten fall funktioniert keines der zwei verbindungen. dann werfe ich sie manual via finder aus und verbinde die time capsule dann wieder übern finder manuell.

das kann ja nicht lösung sein, außerdem wunder ich mich ständig wenn ich mit mount volume afp:// usw meine time capsule verbinde dann ist das symbol nicht das selbe wie wenn ichs via finder manuell verbinde why?

ja hoff das es dafür auch wieder eine gscheide lösung gibt
 
keiner eine idee? ich werd ja nicht der einzige sein mit dem problem?
 
poste mal das skript, so lässt sich leider wenig sagen.
 
so hier mal mein gesamtes autostart script

Code:
on run
	startupgrowl("Autostarting begins ...", "Info-Notify")
	delay 2
	
	-- Starte Dashboard
	startupgrowl("Widgets werden gestartet ... (1/2)", "Info-Notify")
	tell application "System Events"
		key code 111
		delay 2
	end tell
	--
	
	tcisconnected("already")
	networkstatus()
	tcisconnected("connected")
	
	-- Dashboard schließen
	tell application "System Events"
		delay 2
		key code 111
	end tell
	--
	startupgrowl("Fertisch", "Fertig-Notify")
end run

on networkstatus()
	set localstatus to pingthat("krobis-capsule.local")
	
	if localstatus is "false" then
		set netstatus to pingthat("www.google.com")
	end if
	
	if localstatus is "ok" then
		connectlw("local")
	else if localstatus is "false" and netstatus is "ok" then
		connectlw("krobi%5C.pd.members.mac.com")
	end if
end networkstatus

on pingthat(pingurl)
	set pingok to do shell script "ping -c 3 -t 2 " & pingurl & " || true"
	if pingok contains "0% packet loss" then
		return "ok"
	else
		return "false"
	end if
end pingthat

-- Time Capsule verbunden?
on tcisconnected(switch)
	set networkdrives to (list disks)
	if networkdrives contains "Data" then
		if switch is "connected" then
			startupgrowl("Time Capsule ist verbunden ... (2/2)", "Info-Notify")
		else if switch is "already" then
			checkapp()
			with timeout of 5 seconds
				do shell script "hdiutil unmount -force /Volumes/Data" user name "username" password "passwort" with administrator privileges
				if networkdrives contains "Data-1" then
					do shell script "hdiutil unmount -force /Volumes/Data-1" user name "username" password "passwort" with administrator privileges
				end if
			end timeout
		end if
	else
		if switch is "connected" then
			startupgrowl("!!! Time Capsule nicht vorhanden!!! (2/2)", "Attention-Notify")
		end if
	end if
end tcisconnected

on checkapp()
	tell application "System Events"
		set activeapps to (name of processes)
	end tell
	
	set killapps to {"iPhoto", "iTunes"}
	repeat with thisapp in killapps
		if activeapps contains thisapp then
			tell application thisapp to quit
			delay 2
		end if
	end repeat
end checkapp

-- Connect-lw script
on connectlw(whattype)
	try
		tell application "Finder"
			mount volume "afp://krobis%20capsule._afpovertcp._tcp." & whattype & "/Data" as user name "username" with password "passwort"
		end tell
	end try
end connectlw

--Growl Notifications
on startupgrowl(status, notifi)
	tell application "GrowlHelperApp"
		notify with name ¬
			notifi title ¬
			"Autostart Script" description ¬
			status application name ¬
			"krobis growl notifiy" icon of application "autostart.app"
	end tell
end startupgrowl
 
Ich bin mir nicht ganz sicher, aber ich denke mal es könnte damit zusammenhängen, dass ihr beide den gleichen Username benutzt?
 
währe aus verschiedenen gründen unlogisch
1. mac os logt sich sonst als gast ein normalerweiße und das geht ja auch in beiden profilen
2. unter windows ist das auch egal, vl hat da mac os andere herangehensweise aber aus der windows welt kenn ich das verhalten eigentlich überhaupt nicht
 
hm.. ich hab mal bei mir versucht mich von verschiedenen Rechnern und Accounts auf der TC einzuloggen und bei mir gabs nie Probleme. Geht es denn bei dir wenn du dich nur mit

mount volume "afp://krobis%20capsule._afpovertcp._tcp.local/Data"

von verschiedenen Accounts einloggst?
 
Zurück
Oben Unten