Logbuch
Wlan Netzwerk via Apple script anlegen
Gerade wenn man Hardware wie iPhone und iPad sein Eigen nennt, benötigt man ab und zu schnell eine W-Lan Verbindung. Diese lässt sich leider in den Systemeinstellungen nicht speichern, sondern muss jedes mal neu angelegt werden. Wenn man zum Beispiel öfters mit Touch OSC arbeitet, kann dies sehr lästig sein. Ich habe im netz ein älteres Apple Script gefunden, das nach ein paar kleinen Änderungen perfekt unter 10.6 funktioniert.
Download: WLanScript.zip-- 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 : "C-zu-C-Netzwerk"
property NetworkPassword : "dreizehnZeich"
property CreateMenuName : "Netzwerk anlegen …"
-- Airport aktivieren
do shell script "networksetup -setairportpower en1 on"
--
try
do shell script "/usr/sbin/scselect " & NetworkName
delay 2
--
-- 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 : "C-zu-C-Netzwerk"
property NetworkPassword : "dreizehnZeich"
property CreateMenuName : "Netzwerk anlegen …"
-- Airport aktivieren
do shell script "networksetup -setairportpower en1 on"
--
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 tab
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
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 tab
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
Blog News
Blog Cloud
- Accordion
- Affinity
- Allen & Heath
- Apple
- Benutzer
- Browser
- Bug
- Chrome
- CMS
- Contao
- Contao 4
- Controller
- Crative Suite
- CS6
- CSS
- DB2
- Design
- Erweiterung
- Festivals
- Font
- Fonts
- Grundlinienraster
- grunt
- Hardware
- Hosting
- House
- HTML5
- IE7
- Indesign
- Internet
- iOS
- iPad
- iTunes
- Layout
- Live
- Mac
- Mac Book
- Mamp
- Mischpult
- Mixer
- mobiler
- Mukke
- Music
- Netzwerk
- OS X
- OSX
- PC
- Pfronten
- Photo
- php
- Player
- Preview
- Publisher
- Quark
- Quark XPress
- Raster
- Reisen
- Router
- safari
- Schlüsselbund
- schneiden
- Schriften
- Script
- SEO
- Server
- Set
- Shell Script
- Slider
- Smartwatch
- Snow Board
- Software
- Soundkarte
- SSD
- syncen
- Synology
- Techno
- Terminal
- thunderbolt
- Time Mashine
- Traktor
- Trimm
- Tweets
- Typografie
- typografisches Raster
- typoman
- Unterstützung
- Up
- Video
- Vite
- Web
- Webfont
- Webfonts
- Webserver
- Website
- Wifi
- Windows
- Wlan
- Xone
Kommentare