• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OT: Airport on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OT: Airport on Leopard


  • Subject: Re: OT: Airport on Leopard
  • From: "John C. Welch" <email@hidden>
  • Date: Wed, 16 Apr 2008 15:10:14 -0400
  • Thread-topic: OT: Airport on Leopard

On 4/8/08 10:46 AM, "Charles Arthur, UKClimbing Editor"
<email@hidden> wrote:

>> Thanks to all for the replies.  Having taken the advice without
>> achieving a resolution, I'm now focusing on the second half of my
>> question, i.e., how to recover programmatically.  I haven't been able
>> to reproduce the problem at will - I can turn off the airport, but
>> this weird "on but disconnected" state has so far eluded my efforts to
>> enter it manually. So I haven't had a chance to test whether e.g.
>> "Ifconfig up" will work...
>
> Actually, I'd quite like to be able to script turning off the Airport on
> Leopard - I have a cron job that puts the machine to sleep in the morning
> (before I pick it up for a train ride) but it would be doubleplusgood to be
> able to get it to turn the Airport off just before it sleeps. Save battery
> power.
>
> Clues, please? I can't figure it out from System Prefs.

On Mac OS X 10.5, you can do this via the Network Preferences suite in the
System Events dictionary.

However, the easier way in Leopard is to do it via "do shell script":

/usr/sbin/networksetup -setairportpower off

In Mac OS X 10.4 server, same command and path.

In Mac OS X 10.4 client, it would be:

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/
networksetup -setairportpower off

john

--
 "Klingon multitasking systems do not support "time-sharing".  When a
Klingon program wants to run, it challenges the  scheduler in hand-to-hand
combat and owns the machine."


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: OT: Airport on Leopard (From: "Charles Arthur, UKClimbing Editor" <email@hidden>)

  • Prev by Date: Re: Getting elements of a list
  • Next by Date: Re: Getting elements of a list
  • Previous by thread: Re: OT: Airport on Leopard
  • Next by thread: Showing a Mail mailbox
  • Index(es):
    • Date
    • Thread