Themen-Optionen
Alt 31.07.2009, 18:34
#1

Senior Member
 
Registriert seit: Dec 2008
Ort: Schweiz
Beiträge: 127
Ich habe zur zeit keinen WiFi Router und trotzdem möchte ich mit dem iPhone wenn ich Zuhause bin WiFi haben.

Da bietet sich ja das Netzwerk Sharing Feature von Mac OS X ja super an. Einfach in den Einstellungen unter Sharing einschalten und gut ist.

Ein Problem habe ich jetzt allerdings noch. Nach jedem Neustart ist das Sharing wieder aus! Nervig. Weiss jemand von euch wo ich ein Script her bekomme, dass mir das Sharing jeweils beim starten wieder an macht? Ich konnte bisher nichts finden und eine Konfigurationsmöglichkeit mit der sich das Verhalten anpassen lässt gibt es nicht.

Vielleicht wirds ja mit Snow Leopard was. :-D
Chilloutman ist offline


Alt 01.08.2009, 14:48
#2

ha
Senior Member
 
Registriert seit: May 2006
Ort: Münster
Beiträge: 241
Du kannst ein Apple Script nutzen, dass du unter Systemeinstellungen > Benutzer > Startobjekte hinzufügst.

Mit diesem Script sollte es klappen, wahrscheinlich musst du die Bezeichnungen allerdings an deine (deutsche) Systemsprache anpassen, aus "System Preferences" wird also "Systemeinstellungen" etc. Die Growl-Benachrichtigung kannst du natürlich rausnehmen.

Zitat:
(* Author: A. Davis
Date: 05.20.2008
Latest Revision: 05.20.2008
Purpose: Start Interet Sharing - specifically, this is used to share the wired network connection
over Airport to be used by my iPhone. If scripted with DSW when the work Time Machine drive mounts
then its that much better. A correlary script can be used to disable Internet Sharing when the
same drive is unmounted.
*)

register_growl()

tell application "System Preferences" to set current pane to pane "com.apple.preferences.sharing"
tell application "System Events" to tell process "System Preferences"
click checkbox 1 of row 10 of table 1 of scroll area 1 of group 1 of window "Sharing"
delay 1
if (exists sheet 1 of window "Sharing") then
click button "Start" of sheet 1 of window "Sharing"
end if
try
set message to "Internet Connection Sharing Enabled"
my growlnote("General Notification", message)
on error
set message to "Internet Connection Sharing was Not Enabled"
my growlnote("error notification", message)
end try
end tell
ignoring application responses
tell application "System Preferences" to quit
end ignoring

on register_growl()
try
tell application "GrowlHelperApp"
set the allNotificationsList to {"General Notification", "Debug Notification", "Error Notification"}
set the enabledNotificationsList to {"General Notification", "Debug Notification", "Error Notification"}
register as application "Enable Internet Connection Sharing" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "Sharing"
end tell
end try
end register_growl

on growlnote(growltype, str)
try
tell application "GrowlHelperApp"
notify with name growltype title growltype description str application name "Enable Internet Connection Sharing"
end tell
end try
end growlnote
ha ist offline


Alt 01.08.2009, 15:04
#3

ha
Senior Member
 
Registriert seit: May 2006
Ort: Münster
Beiträge: 241
Habe es grade mal getestet, das Skript funktioniert auch, wenn die Systemsprache auf Deutsch gestellt ist.. Den Code einfach in den Skripteditor kopieren, Ablage > Sichern unter... , Dateiformat Programm. Und dann unter Systemeinstellungen > Benutzer > Startobjekte hinzufügen. Neustarten.

Vorher natürlich schauen, dass unter Systemeinstellungen > Sharing > Internet-Sharing bis auf das Häkchen ansonsten alles richtig konfiguriert ist, in deinem Fall also wohl Ethernet mit Computern gemeinsam nutzen über Aiport.
ha ist offline


Alt 01.08.2009, 20:33
#4

Senior Member
 
Registriert seit: Dec 2008
Ort: Schweiz
Beiträge: 127
Grossartig! Danke dir.
Sogar mit Growl. :-D

Das system habe ich sowieso auf Englisch, das wäre also kein Problem gewesen. Hatte mir schon überlegt ob mir selber n Script schreiben soll aber AppleScript ist echt nicht mein Ding.
Chilloutman ist offline



netzwerk , script , sharing
Themen-Optionen

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.
BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

© 2006-2010 MACNOTES.DE. Made with insanely great ♥ for all things Mac.