• 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: Scripting the Location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Scripting the Location (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Safari
  • Next by Date: How to get the name with which someone has mounted a fileserver volume ?
  • Previous by thread: Re: Scripting the Location
  • Next by thread: Re: Scripting the Location
  • Index(es):
    • Date
    • Thread