• 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
Setup network use PPPOE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setup network use PPPOE


  • Subject: Setup network use PPPOE
  • From: Xianyu_Ge <email@hidden>
  • Date: Tue, 11 Nov 2008 09:50:04 +0800

Hi, everyone,
I am new to applescript, I want to use applescript in my app,  In application, I have to use user name and current time to calculate real user name, use this name according to pppoe to connect network. I have find some codes:
tell application "System Events"
    tell network preferences
        tell current location
            set aPPPoEService to a reference to (first service whose kind is 10)
            if exists aPPPoEService then
                connect aPPPoEService
            end if
        end tell
    end tell
end tell
but this just support 10.5 or later, and I don't know how to set the real user name. I find system events in dictionary,  if I should set the "account name" to the real name, or others, please help me, or give me some sample,  I am grateful that, thanks.

---
Best Regards,
Xianyu





 _______________________________________________
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: Re: FileMaker 9 finds
  • Next by Date: Re: accessing a property of an object in AppleScript
  • Previous by thread: Re: Help Book
  • Next by thread: Scripting KerberosAgent
  • Index(es):
    • Date
    • Thread