tell application "System Events"
tell process "SystemUIServer"
click (menu bar item 1 of menu bar 1 whose description contains "Wi-Fi")
click menu item "MY NETWORK HERE" of menu 1 of result
end tell
end tell
networksetup -setairportnetwork AirPort (SSID) (PASSWORD)
--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/78c698d9-cabc-4c8b-a0b5-3cd82a218fc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/CAOOK5AYAS6RfLXcUmYWkfq%3D66iyN53utG4vAaEcz9jykEcX6Fg%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/wJ0g45ixzAE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/CAOOK5AYAS6RfLXcUmYWkfq%3D66iyN53utG4vAaEcz9jykEcX6Fg%40mail.gmail.com.
Andy Dolph has convinced me to get a second USB Wifi adapter and set it to another IP address. This may solve the issue without the script.
I think this is a terrific idea.
Complexity that works is not complex ;-)
I could not possibly disagree with this more.
Thanks Sam for the script.
You are quite welcome!
Good luck!
--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/wJ0g45ixzAE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/CAOOK5AaGRsY6EG4VJd1y%2BvGgvP%2B%2BPahpNxuja6%2BS25tDkDodvA%40mail.gmail.com.
tell application id "com.figure53.QLab.4" to tell front workspace
set mynetwork to "FU WIFI"
do shell script "networksetup -setairportnetwork Airport mynetwork activemediagroup"
end tell
Mark
Mac to join a specific wifi network using this shell command:
networksetup -setairportnetwork AirPort (SSID) (PASSWORD)So in an AppleScript, it would be:do shell script “networksetup -setairportnetwork AirPort myNetwork myPassword”
tell application id "com.figure53.qlab.4" to tell front workspaceset myPortFinal to q name of cue "myport"set myWIFInetwork to q name of cue "myWIFI"set MyPassword to q name of cue "myPwd"set myPortNetwork to "networksetup -setairportnetwork " & myPortFinal & " " & myWIFInetwork & " " & MyPassworddo shell script myPortNetworkdelay 10set mySSID to do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}'"if mySSID is myWIFInetwork thenstart cue "WIFIsuccess"elsestart cue "WIFIfailure"end ifend tell
--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/67890751-5f87-4c68-85e7-105c33a08fb4%40googlegroups.com.
--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/67890751-5f87-4c68-85e7-105c33a08fb4%40googlegroups.com.
"This is a terrible idea but I did it anyway..."
set myWIFInetwork to "FAILURE\ PRONE"
set myPortNetwork to "networksetup -setairportnetwork " & myPortFinal & " " & quoted form of myWIFInetwork & " " & MyPassword
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/be9db330-3588-462a-8bf5-8139807eafe7%40googlegroups.com.
tell application "System Events" to tell process "SystemUIServer"
click (first menu bar item whose value of attribute "AXDescription" contains "Wi-Fi") of menu bar 1
try
click menu item 6 of menu of (first menu bar item whose value of attribute "AXDescription" contains "Wi-Fi") of menu bar 1
end try
end tell