Tuesday, July 14, 2020

#1 2002-05-02 07:34:20 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Auto connect script ?

I am looking for a script that would watch the status of my PPP connection and re-connect the mac to the net everytime the connection is broken. My DSL provider in France disconnects us once avery 24 hours.


One mans trash is another mans treasure

Offline

 

#2 2002-05-09 06:11:43 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Auto connect script ?

Save this as a "Stay open" app:

Applescript:

if (PPP status)'s state ? "connected" then PPP connect -- Or "RA" instead of "PPP"
return 10 -- Or however often you want to check
end idle


One mans trash is another mans treasure

Offline

 

#3 2002-05-09 06:22:32 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Auto connect script ?

I should have added - in case you don't realise it - that you will need an appropriate osax (so I hope you are not in X). If you do not have one of the Scripting Additions with these commands then I suggest you download "Remote Access Commands".
Andreas


One mans trash is another mans treasure

Offline

 

#4 2002-05-10 08:01:45 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Auto connect script ?

Thank you Andreas, I am in X ! BTW, what's the appropriate osax ?


One mans trash is another mans treasure

Offline

 

#5 2002-05-10 11:44:30 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Auto connect script ?

"I am in X"

Oh dear, Oh dear, Oh dear. Those are the words that scripters shudder to hear for the moment.
"Osax" is just jargon for "Scripting Addition" - so the appropriate osax would be as above. BUT, BUT, BUT - I'm really sorry, Jose, but almost no osaxen (that's the plural) work yet in X, and I'm as sure as I can be that "Remote Access Commands" is one of those that has as yet to be updated/rewritten.
In OS 8.6 or 9 the simple script I gave you would work perfectly but in X how you might accomplish what you want I'm afraid I just do not know. Perhaps someone else does?


One mans trash is another mans treasure

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)