Re: Scripting the Location
Re: Scripting the Location
- Subject: Re: Scripting the Location
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 30 Aug 2003 08:54:04 -0700
On 8/30/03 8:43 AM, "John C. Welch" <email@hidden> wrote:
>
There is a far easier way to script network changes than UI scripting. You
>
use the 'scselect' utility with a "do shell script" statement.
>
>
If you open terminal, and just enter scselect, it lists all your locations,
>
giving each a numerical index starting at 0. scselect indexnumber changes to
>
that location. Examples below.
>
>
[localhost:~] jwelch% scselect
>
Defined sets include: (* == current set)
>
* 0 (Home)
>
1 (MIT)
>
>
[localhost:~] jwelch% scselect 1
>
CurrentSet updated to 1 (MIT)
>
[localhost:~] jwelch% scselect 0
>
CurrentSet updated to 0 (Home)
>
>
I'd recommend this over UI scripting.
>
>
FAR less work and less fragile too.
Thanks, John. Very helpful.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.