Turn Off / Airport / Menu Item

Hello,
I try to make an applescript to turn off Airport by menu items
I've try this (see below) but it doesn't work on Leopard (french version).
I've already turn off "Enable Access for assistive devices" in Universal Access.
Thanks in advance for your help,
Regards,
Grégoire
*tell application "System Events"*
*click menu bar item 1 of menu bar 1 of application process "SystemUIServer"*
*click menu item "Désactiver AirPort" of menu 1 of menu bar item 1 of menu bar 1 of application process "SystemUIServer"*
*end tell*

The menu position isn't set so you can't assume a numerical index, but you can go through the menu items looking for the one you want. There was an earlier topic about scripting the Airport menu, so I just looked up some keys in the French localized strings. The "Enable Access for assistive devices" will need to be turned on, but the following script should do it:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #FFDDFF;
overflow: auto;"
title="this text can be pasted into the Script Editor">
tell application "System Events" to 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 is "Menu supplémentaire AirPort" then tell menu bar item the_menu
click
delay 0.5
click menu item "Activer AirPort" of front menu
-- click menu item "Désactiver AirPort" of front menu
delay 0.5
end tell
end repeat
end tell -- menu bar 1
end tell
</pre>

Similar Messages

  • Can't turn off airport

    After installing snow leopard on my MacBook 13" I can't turn off airport from the top menu or from network utility.
    Just now was successful in turning off Airport. I had to go to network preferences, click on automatic (not my regular network name), the apply button was no longer grayed out. Hit apply and was able to turn off the connection from preferences. Can now turn off and on from top menu

    ok I just installed SNM LPD on 3 intel macs-older Imac 2.0ghz, newer 13"macbook 2.4ghz, and newer 24"Imac 2.4ghz. All of them worked ok except the Imac. I couldn't connect to a wireless network at all nor could I turn off the airport card. The system profiler saw the card and it seemed to be working fine. So I knew it was a software problem. I tried everything. I was just about to wipe the disk and reinstall everything (which would have taken 3 to 4 days) when I tried to add another network location profile. I've used the automatic profile forever, but then I thought I'd try a whole new location. I went to edit locations. Hit the plus button and named it. It populated the hardware and my airpot card (which was on but wouldn't connect) turned off. When I turn it back on (in the NEW location menu) it found all the nearest networks instantly. I found my home network and put in my password and it didn't give me the small "connection error" sign. I don't know what this glitch is but its annoying...hope its helps!

  • Turn off airport before sleep

    Is there a airport configuration that turns off airport when putting macbook pro to sleep?

    Well, a workaround for that would be to make a New Location in Network>Location>New Location... maybe name it Air OFF, then in Network>Show>Network Port Configurations, make sure Airport is unchecked.
    A quick trip to the Apple Menu>Location>All OFF before sleep should make sure.
    Oh, if you're Sharing any Files, be sure to eject any drives before sleep.

  • TS2972 Bug:How can Home sharing be turned off and all items in my library cleared without my intervention? This is the SECOND time this happens since end of March 2013. A permanent solution will be appreciated

    Bug:How can Home sharing be turned off and all items in my library cleared without my intervention? This is the SECOND time this happens since end of March 2013. A permanent solution will be appreciated

    See this post.
    Assuming AVG is involved there is a new patch which may resolve the issue. Update AVg before attempting to recover the library.
    tt2

  • Is it possible to turn off the menu bar on secondary display?

    I have upgraded to Mavericks on an iMac used exclusively for presentations (not mirrored) and now the menu bar shows up dimmed on the presentation screen if there is not a presentation currently playing. I have not found any setting for turning off for that display. Can it be done? If not Apple please add this option ASAP because it looks very unprofessional to have the menu bar pop-up on the presentation display in between presentations.
    Has anyone found a solution to this problem?
    -Michael Wheeler

    It worked but needed some further finessing to perfect.
    After unchecking "Displays have separate Spaces" and logging out and back in the menu bar was gone but however now it showed the same desktop picture as was on the primary display. That was highly undesireable as I was trying to get rid of anything being shown on the projection screen when a slide show was not playing.
    I played around with the "Desktop & Screen Saver" preference pane and discovered that I could still change the Desktop pictures of each display separately -- whew! I was worried there for a while. Not sure why it didn't just keep the original solid black desktop setting for that display as that would have been ideal but I was able to change it back to the solid black setting as before and now it just looks like the projection screen is off whenever a slide show is not playing -- perfect!
    Let me just say to Apple that the whole process was very unintuitive and couldn've been solved with just a simple checkbox in the "Displays" preference pane to turn off the menu bar for the alternate display. So may I kindly suggest you consider adding some sort of option to do that in the Displays preference pane where it would be much more intiuitive than "Mission Control --> Uncheck Deisplays have separate Spaces."
    Thanks again for you help!

  • Cannot turn off airport on Imac and PowerBook

    I cannot turn off airport on iMac 17" intel (late 2006) and G4 powerbook. One common thing is:
    I got rid off .plist files (airport related) on both machines prior to putting new AE in to mix. I set up AE and not only I cannot establish wireless on both machines I cannot turn airport on both as well. Old G4 iMac (3rd machine that was not altered) works.
    What did I get rid off?
    iMac gives me this:
    AirPort Card Information:
    Wireless Card Type: AirPort Extreme (0x14E4, 0x87)
    Wireless Card Locale: USA
    Wireless Card Firmware Version: Broadcom BCM43xx 1.0 (4.170.46.9)
    Current Wireless Network: AirPort is currently turned off
    While Network pref. and icon in menus says airport is on. (Same with powerbook)
    Any suggestions?
    Just to ad to confusion. This is replacement AE. First one after firmware upgrade (7.3.2) started to misbehave (very weak signal, mostly). I did downgrade to 7.3.1 but after couple of days I went for factory one (firmware that is), and here I am.

    …after waking both computers from sleep situation is reversed. Airport is off and I cannot turn it on. After restart I am back to Airport on (not able to connect, while showing networks to join) and not able to turn off.

  • How do i turn off airport express bridge

    How do i turn off airport express bridge?

    Only exception was that it went into bridge mode and I cannot configure an IP camera that was working prior.
    Bridge Mode is the correct setting for the AirPort Express since your "upgraded" Xfinity device is a modem/router or gateway device.
    So, you already have a router set up on the network. Bridge mode must be used on the AirPort Express to avoid having two devices both trying to act as routers on the network.
    That would create IP address conflicts and other problems like Double NAT.
    Since the Xfinity device is now your network router, you must configure the port settings for your camera on the Xfinity modem/router. The AirPort Express will simply pass through those settings since it is in Bridge Mode.
    You may need to check with Xfinity support on how to set up port forwarding if the owners guide does not cover that topic.

  • When i turn off airport i can still go to my tablet---why

    is it normal for my tablet to work even if i turn off airport express????

    I'm not sure exactly what you are referring to, but I assume you are asking if it is normal for the tablet to operate even if it doesn't have a Wi-Fi connection ... correct? If so, then I would say "yes."

  • Turn off airport extreme

    How can I turn off airport extreme during certain times of the day so my kids can't use wifi?

    You might want to take a look at the Timed Access settings in AirPort Utility, which will allow you specify the times each day that everyone will be allowed to connect to the network.
    Or, you can individualize this, and the set up individual "rules" for each of the kids' devices that allow them to connect using certain times each day....while your devices have unlimited access.

  • Turn off airport before closing display?

    should i turn airport off before i close the display and let the computer go to sleep?

    I don't know how much battery that saves, but I know that I always turn off airport whenever I'm not searching the net, and before I sleep my MBP I turn it off.

  • TURN OFF AIRPORT IF USING 10.5.2

    I've also installed 10.5.2 on a MBP. Performance for playing audio is terrible until I turn off AirPort.
    I don't think users need to go back to Tiger. Simply staying at 10.5.1 is fine (at least, that worked well for me). If you've already upgraded to 10.5.2, simply turn off airport when you need audio performance. I know, it certainly ***** to have to do this. But for me it means I can go back to normal performance.

    "Wow, this is the first thread anywhere I've found that seems to address the very problem I've been having."
    I admit I've been following this problem more or less since it started. This thread should actually be callsed "TURN OFF AIRPORT IF USING LOGIC OR MAINSTAGE", cause the problem exists in 10.4.11 as well.
    Here are some more "victims":
    http://discussions.apple.com/thread.jspa?threadID=1497164&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=1492542&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=1467338&tstart=30
    http://discussions.apple.com/thread.jspa?threadID=1497318&tstart=75
    http://discussions.apple.com/thread.jspa?threadID=1474406&tstart=105
    http://discussions.apple.com/thread.jspa?threadID=1463502&tstart=210
    http://discussions.apple.com/message.jspa?messageID=7047636
    Message was edited by: Qzxptl

  • 2013 MBP 2.5 i5 4Gig 500MBHDD boots slow.  It finishes post in the same time as an identical MBP, and then hangs for 30 seconds on one of the ethernet adapters, before finishing the boot.  Once booted it is normal.   Turning off airport changes nothig.

    2013 MBP 2.5 i5 4Gig 500MBHDD boots slow.  It finishes post in the same time as an identical MBP, and then hangs for 30 seconds on one of the ethernet adapters, before finishing the boot.  Once booted it is normal.   Turning off airport changes nothing.  Hardline adapter is not plugged in.  Thunderbolt adapter is not used.  Bluetooth is off.  Did this out of box.  Identical MBP boots to login screen in 36 seconds.  Disk repair, permission repair, and safe mode boot have
    already been done, no change.  Boot time is consistent.  Hangs at the same place each time.  Right after post.  Bad adapter?
    Comments, solutions please.

    ... and so ... now a few days later, success.   I ran
    your software but it told me nothing I hadn 't seen
    in verbose boot.
    Consistently, following good post, the boot hung
    for 30 seconds on the adapters, (cards, chips, NICs.
    Ethernet cards, whatever you prefer to call them)
    either the airport card or the hard line.  It would then
    proceed at normal pace to the login screen.
    Since it came out of the box that way, software
    conflict was not a go.  I guessed glitched driver or
    fetch instruction.  I zapped the PRAM (cleared
    NVRAM) and reloaded the OS, updates, Garage Band,
    iPhoto (one of Apple's true dogs in an otherwise
    rare arena) iMovie, Photoshop, Lightroom, their
    updates, and my files.   MBP pro now boots to login
    in 31 seconds.  Note I have turned off as much gee
    whiz, rubber band scroll, global swiping and other
    hubcaps and hood ornaments as befits how like
    things ... and turned off all the Asian and other fonts
    I will. ever use.
    Best guess ... corrupt driver or corrupt fetch script ...
    bad server squirt at factory load.
    Thanks for your help, Cheers!

  • "Always Available off line" menu item not available for user on computer where another does see it. This is on Active Directory Computer

    I have a lap top that I want to add files via Always available off line.
    When I logon and right click on a folder share I can see the menu item all was available offline.  When the user logs on this option is not available.  I have turned the feature on and off, rebooted, I have deleted the cache folder but I cannot
    see how to get this menu item to show up.  It's odd that it shows up for one user but not another on the same computer.  I have searched the web and tried the above things and others but cannot seem to resolve this problem.  It seems pretty
    common and their. This computer is on a domain.
    thanks.

    Hi,
    So as we edited the group policy settings in the default domain policy, the menu item is now available?
    And as we are in a domain environment and the settings is configured under the default domain policy, how the domain users behave different from each other? Which someone could see and the other not?
    Could we please generate a
    GPO report to take a check?
    And regarding group policy issue, it is recommended to seek help in the group policy forum, experts there may share some insights:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverGP
    Best regards
    Michael Shao
    TechNet Community Support

  • Why does my MacBook keep turning off Airport?

    For the past few days my Airport on my MacBook has been turning off. There are four other Mac laptops that access the same Wi-Fi in the house, and none of them have this issue. There are also five iPads of varying age, a few iPods and four iPhones (we are only on Apple products at this time). None have this issue.
    To start: YES, I have turned it off and on again! I work IT, mainly with radios, but I know that step is the first to be asked. I have turned it ALL off and then on again. Please, do not insult my intelligence by asking that question.
    When I go into "Network Preferences" and look, there is no connection, and nothing I do turns it on. I then turn Airport off and on again, select the only network the computer has ever been connected to (it never leaves the house), and then it works. I am getting a little frustrated with the whole issue. Any suggestions?
    It is a white, 2009 MacBook, 15 inch. It is running Mac OS X Version 10.5.8.
    Thanks for looking at the post!

    Resetting the NVRAM could solve the problem.
    http://support.apple.com/kb/HT1379?viewlocale=en_US
    Or Finder Go menu  > Goto... ~/Library/Preferences then delete the files called "com.apple.internetconfig.plist" and "com.apple.internetconfigpriv.plist" then reboot coud solve the problem.

  • Does Selecting Off Completely Turn Off Airport?

    As a switcher, I would like to know: Does selecting 'Off' from the dropdown Airport menu completely stop it from sucking power, or does it just drop the current network? Cause when I'd select Wireless Off on my ex-Dell, it would just disconnect from the network and continue broadcating and massacring my battery life.
    Thx
    -tcvanp3570

    tcvanp3570, Welcome to the discussion area!
    Does selecting 'Off' from the dropdown Airport menu completely stop it from sucking power...
    Yes it turns it completely off.

Maybe you are looking for

  • General Settings Decimal Places

    Good Day Experts: I have a request to make the Decimal places, for my Quantity and Price columns in a Matrix on one of our custom screens, have the same number of places as the list in General Settings\Display Tab. For example, Prices has a setting o

  • Items on task bar have a strange problem.

    As you can see in the following picture, the items on task bar (especially the windows) are not touching the bottom. I mean if I click the area below the blue underline, it won't open the window and is just like clicking on an empty area on the task

  • No Component exists with the name /bic/zplant2

    Hi, i am getting the error for this abap code this code is written in Start routine in BW. but it is giving error while running or checking the program.. the same start routine works fine in Production, but it gives error in Quality. r_plant    like

  • I installed Lightroom 5.6 on Mac, when starting I receive an error message "An error occurred while attempting to change modules"

    I installed Lightroom 5.6 (full version, not trial) on Mac, when starting I receive an error message "An error occurred while attempting to change modules". I tried removing it and reinstalling but the same error comes up. Anybody have any recommenda

  • What is the application "spnsrvmac"?

    I have recently upgraded to mavericks but now, on start up, I am asked: "Do you want the application "spnsrvmac" to accept incoming network connections?" I think it is related to the Sentinel Protection application, can anyone tell me what this does