AppleScript to activate Ethernet

Discussion in 'AppleScript' started by vic_cairns, Jul 31, 2010.

  1. vic_cairns

    vic_cairns New Member

    Joined:
    Jul 31, 2010
    Messages:
    1
    Likes Received:
    0
    Hi,

    I have been trying, to find a one click solution to connect - or disconnect Ethernet, similar to the feature available to connect / disconnect "Airport".

    At the moment I am using an Automator script, which however is not only slow, but will not work 4 out of ten times (cursor just hangs during the operation).

    The best solution would probably be an AppleScript, but despite consulting various sites on the Internet, I could not manage, to work out the respective mnemonics required, to write such a script.

    In order to connect manually, my current procedure is:

    System Preferences
    Network
    Ethernet
    Configure IPv4
    using DHCP
    Apply

    To disconnect:

    System Preferences
    Network
    Ethernet
    Configure IPv4
    Off
    Apply

    For either of the 2 procedures I would need some assistance to write a Script.

    My system configuration:

    MacBook Pro 17", 2.66GHz, 4GB Ram
    Mac OSX 10.6.4

    Any solution, even other than an AppleScript, would be greatly appreciated. Thanks in advance, Vic
     
    vic_cairns, Jul 31, 2010
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. hugeness

    trying to activate broadband on LAN

    hugeness, Sep 16, 2006, in forum: Mac OS X
    Replies:
    2
    Views:
    683
    hugeness
    Sep 17, 2006
  2. Newsbot
    Replies:
    0
    Views:
    748
    Newsbot
    Dec 12, 2006
  3. Newsbot
    Replies:
    0
    Views:
    489
    Newsbot
    Jun 26, 2007
  4. Charles
    Replies:
    0
    Views:
    404
    Charles
    Aug 16, 2005
  5. jscooper22@yahoo.com

    Activate Specific Version of an Application with Applescript

    jscooper22@yahoo.com, Jul 7, 2005, in forum: Programmer Help
    Replies:
    3
    Views:
    251
    Thomas Engelmeier
    Aug 5, 2005
  6. abirtz@gmail.com

    Cocoa obj-C call equivalent to AppleScript "activate"

    abirtz@gmail.com, Jun 6, 2009, in forum: Programmer Help
    Replies:
    3
    Views:
    421
    abirtz@gmail.com
    Jun 8, 2009
  7. Danny
    Replies:
    8
    Views:
    376
    Danny
    Jul 25, 2004
  8. Jeremiah DeWitt Weiner

    Applescript: how to activate window, not app?

    Jeremiah DeWitt Weiner, Jul 21, 2006, in forum: AppleScript
    Replies:
    1
    Views:
    485
    Une bévue
    Jul 21, 2006
Loading...