Applescript/Commandline to Join Hidden Network

Discussion in 'Mac Basics and Help' started by jotade11, Jan 2, 2011.

  1. jotade11 macrumors regular

    Joined:
    Feb 2, 2009
    #1
    I just got a new AirPort Extreme and I set it up as a closed/hidden network for privacy in sharing disks and printers. I would like to be able to join the network it creates more easily than having to enter in the SSID and password each time (also, I guess the OS doesn't 'cache'/remember hidden networks like it does for a normal, open one) so I googled how to change AirPort settings on a MacBook via Applescript or the command-line without much luck; everything seemed outdated or didn't work with my MPB. What is the best way to join a network easily and is it possible to write a script that you would simply have to click to change networks?

    Thanks!
     
  2. Dalton63841 macrumors 65816

    Dalton63841

    Joined:
    Nov 27, 2010
    Location:
    SEMO, USA
    #2
    As an applescript:

    Code:
    do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport --associate=*yourSSID* --password=*yourkey*"
     
  3. jotade11 thread starter macrumors regular

    Joined:
    Feb 2, 2009
    #3
    Works like a charm....

    Perfect! Thanks so much! :D
     

Share This Page