MAC-Adressen Filter der Airport-Station per Script befüllen

Ist zwar GUI-Scripting, hat mir aber einiges an Zeit erspart, als ich mal so 30 MAC-Adressen in den Filter einer Airport-Station eintragen durfte. =)
Code zum markieren einmal anklicken Code im Skript-Editor öffnen

set a to {"04:1e:aa:ef:7c:5d", "04:1e:aa:eb:1:e7"}

set i to 1

repeat with w in a

activate application "AirPort Utility"

tell application "System Events"

tell process "AirPort-Dienstprogramm"

click button 2 of tab group 1 of window 1

delay 1

keystroke w as text

delay 0.25

keystroke tab

keystroke tab

keystroke "mac " & i

delay 0.25

keystroke return

delay 1

end tell

end tell

set i to i + 1

end repeat

This entry was posted in Useful Snippets and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA:


− three = 4

Subscribe without commenting

  • Seite übersetzen:


    Paypal for Pizza:




  • Kategorien


  • Letzte Kommentare

    • Niklas: Vielen Vielen Dank! So klappt es!
    • hubi: Servus Niklas, ich habe mir den Quellcode noch einmal angesehen und habe nun unter 10.7.3 einen Weg gefunden...
    • Niklas: Klingt super das Script. Leider bekomm ich immer folgende Fehlermeldung: error “„Mail“ hat einen Fehler...
    • Jürgen: Hallo Hubi, beim Abfragen von Kennworten gibt es noch eine böse Falle: Das Format, in dem security antwortet,...
    • hubi: Am einfachsten Du öffnest im AppleScript-Editor mal das Funktionsverzeichnis (unter Ablage) von iTunes. Ein...