• 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
how to get configurations of network preferences service?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to get configurations of network preferences service?


  • Subject: how to get configurations of network preferences service?
  • From: Donald Hall <email@hidden>
  • Date: Tue, 23 Sep 2008 23:02:15 -0600

Title: how to get configurations of network preferences service?
Does the "current configuration" of a service not apply to anything but dialup modems? The script below fails for every type of service I have tried except for the Internal Modem on one of my older computers:

tell application "System Events"
       
tell current location of network preferences
                set names to name of every service
                name of service 2
              
set n to name of current configuration of service 2
            
n
      
end tell
end tell
-----------------------------------------------------------
Event Log
tell application "System Events"
       
get name of every service of current location of network preferences
           
{"Built-in Ethernet", "AirPort", "Bluetooth", "Built-in FireWire"}
     
get name of service 2 of current location of network preferences
               
"AirPort"
      
get name of current configuration of service 2 of current location of network preferences
              
"System Events got an error: Can't get configuration of service 2 of current location of network preferences."

Thanks,

Don

--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
 _______________________________________________
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

  • Prev by Date: Apple Script issue
  • Next by Date: Re: Apple Script issue
  • Previous by thread: Re: Apple Script issue
  • Next by thread: File check...
  • Index(es):
    • Date
    • Thread