Nun, es liegt wahrscheinlich daran, dass Du ein dt. System hast.
Hier mal der komplette Code... mit den deutschen Übersetzungen, damit es funktioniert.
By the way, Coole Lösung, auch wenn ich von GUI-Scripting in der Regel wenig halte =)!
Code:-- This script creates an ad-hoc network with a password and changes your -- network location. -- -- I just added network passwords and network locations to a script which -- comes from StefanK: -- http://bbs.macscripter.net/viewtopic.php?pid=99243 -- Set NetworkName to be the name of the wireless network you wish -- to create. This will also attempt to set the network location -- to that name as well. -- Set NetworkPassword to be your wireless network password. It MUST BE -- 13 characters long (or 26 hex digits). property NetworkName : "MyAdHocNetwork" property NetworkPassword : "thirteenchars" property CreateMenuName : "Netzwerk anlegen …" try do shell script "/usr/sbin/scselect " & NetworkName delay 2 end try tell application "System Events" tell process "SystemUIServer" tell menu bar 1 set menu_extras to value of attribute "AXDescription" of menu bar items repeat with the_menu from 1 to the count of menu_extras if item the_menu of menu_extras contains "Airport" then exit repeat end repeat tell menu bar item the_menu perform action "AXPress" delay 0.2 perform action "AXPress" of menu item CreateMenuName of menu 1 end tell end tell repeat until exists window 1 delay 0.5 end repeat tell window 1 keystroke NetworkName click checkbox 1 keystroke NetworkPassword keystroke tab keystroke NetworkPassword click pop up button 2 click menu item 2 of menu 1 of pop up button 2 delay 0.5 click button 1 end tell end tell end tell
Ergebnis 1 bis 4 von 4
- 06.09.2008, 11:17 #1Cox Orange
Themenstarter
- Registriert
- 07.2007
- Beiträge
- 96
WLAN via Skript anlegen - reparaturbedürftiges Skript
Kann sich jemand das Skript unter http://www.macosxhints.com/article.p...349&mode=print mal angucken und ggf. sagen, warum es bei mir immer die Datumsanzeige oben in der Leiste öffnet?
IMHO müsste doch an einem solchen Skript auch ein deutliches Interesse bestehen – eine Vielzahl von iPhone-Anwendungen benötigt WLAN und außerhalb von Arbeit/Uni/Zuhause ist eine solche ja i.d.R. nicht verfügbar.
Grüße,
Tiro
- 06.09.2008, 19:46 #2
- 07.09.2008, 01:47 #3Cox Orange
Themenstarter
- Registriert
- 07.2007
- Beiträge
- 96
Vielen Dank! Das mit der Sprachversion hab ich mir auch schon gedacht, nur haben meine Versuche, es anzupassen, nicht gefruchtet.
Tiro
- 15.06.2010, 11:37 #4Fuji
- Registriert
- 06.2010
- Beiträge
- 36
Entschuldigt wenn ich das Thema wieder aus der Versenkung krame, aber so brauche ich keinen neuen Threat.
Gibt es ein solches Script auch für Windows 7? und wenn ja, wie lege ich es an?
Ich muss mein Adhoc auch jedes mal neu anlegen, da das Iphone es nicht mehr findet..
Ähnliche Themen
-
Ad-hoc-Netzwerk automatisch (via Skript) anlegen?
Von Tiro im Forum Airport & WLANAntworten: 7Letzter Beitrag: 07.09.2008, 01:48 -
timeout für skript
Von Skorpi im Forum BrowserAntworten: 0Letzter Beitrag: 12.05.2008, 13:13 -
Hilfe für Skript
Von iMensch im Forum Mac OS X DeveloperAntworten: 2Letzter Beitrag: 26.03.2008, 12:41 -
Geburtstage, Skript
Von tornado im Forum Web-ProgrammierungAntworten: 1Letzter Beitrag: 09.07.2007, 10:18 -
Skript funktioniert nur als Skript aber nicht als Applikation
Von Soul Monkey im Forum Mac OS X DeveloperAntworten: 5Letzter Beitrag: 10.05.2007, 06:31


Zitieren
