• 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: newbie/ How do i script disconnect from PPOE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie/ How do i script disconnect from PPOE


  • Subject: Re: newbie/ How do i script disconnect from PPOE
  • From: Laine Lee <email@hidden>
  • Date: Sat, 14 Dec 2002 17:24:44 -0600

Here's a script I use to toggle a ppp connection. Maybe you can use it.

tell application "Internet Connect"
activate
set mystat to get state of status
end tell

if mystat > 0 then
tell application "Internet Connect"
disconnect
quit
end tell
else
tell application "Internet Connect"
connect
quit
end tell
end if


On 12/14/02 10:59 AM, "Peter Breis" <email@hidden> wrote:

> I am totally new to Applescript but have read up as much as I can
> comprehend of scripting.
>
> This has still left me stumped as to where even to begin on a simple
> script to disconnect me from my PPOE VDSL Internet connection at a set
> time in OSX 10.2.2.
>
> I mean what application am I targetting and how do I tell the time in a
> script before instructing (is it?) Internet Connect to disconnect.
>
> If I get the hang of scripting I'd like to move onto scripting
> Illustrator 10 and InDesign 2.01 which should be useful for my daily
> work.
>
> Any help would be most appreciated, I have searched the archives and
> not found anything relevant but i may just be phrasing the query
> incorrectly.
>
> Peter Breis
> _______________________________________________
> 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.

--
Laine Lee
email@hidden
http://www.txdirect.net/users/llee
_______________________________________________
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: 
 >newbie/ How do i script disconnect from PPOE (From: Peter Breis <email@hidden>)

  • Prev by Date: Re: Scope
  • Next by Date: Getting Internet Explorer 5.2 window name
  • Previous by thread: newbie/ How do i script disconnect from PPOE
  • Next by thread: Re: Shell Script 'find'
  • Index(es):
    • Date
    • Thread