Mac Help Forums


Reply
Thread Tools Display Modes

Internet Applescript?

 
Senior Member
Danster's Avatar
Join Date: Feb 2005
Location: Liverpool, England
Posts: 267
 
      12th February 2005
I was just wondering if it was possible to write a applescript that when you log in it auto connects you to the internet

i have wrote a script where it connects you to the internet i just need it to automate itself as to when i log in it autoruns

It's not essential but but the point of applescript is to make repetitive tasks a thing of the past.

also i have little or no experience of using applescript
 
Reply With Quote
 
 
 
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      13th February 2005
Quote:
Originally Posted by Danster
I was just wondering if it was possible to write a applescript that when you log in it auto connects you to the internet

i have wrote a script where it connects you to the internet i just need it to automate itself as to when i log in it autoruns

It's not essential but but the point of applescript is to make repetitive tasks a thing of the past.

also i have little or no experience of using applescript
Not exactly sure what you mean!

If I have it correct, you have written an Applescript that connects you to the internet, but I'm not sure what you want to do next: copy the applescript onto this board and I will have a look for you.

Can you possibly try and explain what it is you want to automate?

regards

Ric

Last edited by Ric; 13th February 2005 at 09:14 AM..
 
Reply With Quote
 
Senior Member
Danster's Avatar
Join Date: Feb 2005
Location: Liverpool, England
Posts: 267
 
      13th February 2005
Sorry if i wasn't clear.

I want an the applescript to work as when i log in to my account it auto-connects to the internet so i don't have to click the connect to the internet everytime i log in.

Also is there a way to keep my internet connection active while my sister logs onto her account using fast user switching? As she just log's onto her account when i'm usually downloading summit
Attached Thumbnails
Internet Applescript?-picture-1.jpg  
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      13th February 2005
Quote:
Originally Posted by Danster
...is there a way to keep my internet connection active while my sister logs onto her account using fast user switching? As she just log's onto her account when i'm usually downloading summit
Ahh Sisters,

As far as I am aware fast user switching should allow you to keep your internet connection alive.

It would be easier to diagnose the problem if you could give us a little more information?

What version of OSX are you currently running?

How do you connect to the internet? Using a modem, wireless, adsl etc.

If you are connecting to the internet via a dial-up modem then go to System Preferences-->Network, choose your connection, go to PPP, PPP options, and change the option to 'Disconnect when user logs out' is ticked, try un-ticking it. That should keep the connection alive when you switch users.

thanks

Ric

Last edited by Ric; 13th February 2005 at 11:35 PM..
 
Reply With Quote
 
Senior Member
Danster's Avatar
Join Date: Feb 2005
Location: Liverpool, England
Posts: 267
 
      14th February 2005
Quote:
Originally Posted by Ric
Ahh Sisters,

As far as I am aware fast user switching should allow you to keep your internet connection alive.

It would be easier to diagnose the problem if you could give us a little more information?

What version of OSX are you currently running?

How do you connect to the internet? Using a modem, wireless, adsl etc.

If you are connecting to the internet via a dial-up modem then go to System Preferences-->Network, choose your connection, go to PPP, PPP options, and change the option to 'Disconnect when user logs out' is ticked, try un-ticking it. That should keep the connection alive when you switch users.

thanks

Ric
Cheers for that, the box was unticked "disconnect when log out"

i have broadband 1mbps and i'm not sure what modem i have but it has a adsl under a green light

anyways i dont think applescript can help because you have to activate the script and that would ruin the whole point but then again i know next to nothing about.

i was just thinking of a way to use it
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      14th February 2005
Quote:
Originally Posted by Danster
...anyways i dont think applescript can help because you have to activate the script and that would ruin the whole point but then again i know next to nothing about. i was just thinking of a way to use it
Do you currently have to start Internet connect everytime you want to connect to the Internet?

If you're on broadband, the Internet should be connected all the time, or do you turn the modem off when its not being used?

The applescript you wrote is fine, just compile it, (this will turn it into a mini application) and then in the system preferences user accounts , add this new app to run everytime you logon.

Does your sister's login allow her to connect ot the internet?

Ric
 
Reply With Quote
 
Senior Member
Danster's Avatar
Join Date: Feb 2005
Location: Liverpool, England
Posts: 267
 
      14th February 2005
Quote:
Originally Posted by Ric
Do you currently have to start Internet connect everytime you want to connect to the Internet?

If you're on broadband, the Internet should be connected all the time, or do you turn the modem off when its not being used?

The applescript you wrote is fine, just compile it, (this will turn it into a mini application) and then in the system preferences user accounts , add this new app to run everytime you logon.

Does your sister's login allow her to connect ot the internet?

Ric
No I click on the menulet phone icon, then connect to the internet.
That's it really but I usually log out then back in a lot and have to do that all the time and would like something to do it for me and i was thinking applescript

Last edited by Danster; 15th February 2005 at 04:20 PM..
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      15th February 2005
Quote:
Originally Posted by Danster
No I click on the menulet phone icon, then connect to the internet.
That's it really...
Right, we best start from scratch.

What modem/router do you have, make and model please?

Who set it up ? How is the modem connected to the Mac (USB, Ethernet).

Are there any other devices on your network ?

Let me have the above info and we can get this sorted out.

Because you are using Broadband, you should be connected to the internet all the time, if it is set up correctly. You should just open Safari or Mail etc., and voilla you are connected...

Regards

Ric
 
Reply With Quote
 
Senior Member
Danster's Avatar
Join Date: Feb 2005
Location: Liverpool, England
Posts: 267
 
      16th February 2005
Ok

I have a speedtouch USB Modem (nothing else) and I'm on wanadoo broadband.

I set it up but I had problems because the package i got from wanadoo didn't work so i called em and they walked me through step by step on how to set it up using the ppp thingy.

I haven't a clue about what goes on in that network window

I do have a always on connection but when i shut down or restart the USB modem loses the connection and I have to click menulet phone icon/connect to internet when i boot the computer up again.

I think it's getting a bit confusing now for everyone

But it was just a thought that if there was a way for a program to automate that kinda of repetitive task for you. I know it's extreamly lazy but it was just a thought.
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      16th February 2005
Quote:
Originally Posted by Danster
...But it was just a thought that if there was a way for a program to automate that kinda of repetitive task for you. I know it's extreamly lazy but it was just a thought.
Try either of these:-

1)To turn on or turn off automatic dial-up (PPP) Internet connections

1. Choose System Preferences from the Apple menu/dock.
2. Click Network.
3. Choose your modem or other dial-up device from the Show pop-up menu.
Note: The Show menu is named "Configure" prior to Mac OS X 10.1.
4. Click the PPP tab.
5. Click PPP Options.
6. Click the checkbox to select or deselect the "Connect automatically when starting TCP/IP applications" option.
7. Click OK.
8. Click Save

I am not able to try this myself at present, no access to OSX till later...

But this should mean that you don't have to connect via the telephone menulet, all you would do is open safari or mail and the Mac will recognise that you are starting a TCP/IP connection and voilla...


2)Alternatively, use an Applescript, as previously discussed:

try either one of these
-----------------------
tell application "Internet Connect"
connect
end tell

----------------------
tell application "internet connect"
activate
connect
end tell
-----------------------
No access to OSX at the minute, so can't test. Once in script editor save each one as an Application (compile them), and put into the file into your login items in the system preferences. Then when you login you should automatically get connected to the internet.

Only try one of the above at a time.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Applescript?. 00smita AppleScript 1 22nd December 2010 09:28 AM
AppleScript Language Guide for AppleScript 2.0 Patrick Stadelmann AppleScript 0 12th March 2008 05:00 PM
Applescript and Internet Serving? Erik Hentell AppleScript 1 3rd June 2004 08:40 AM
Delay between Applescript end and Applescript App Closing Lucanus AppleScript 2 14th September 2003 11:38 PM


All times are GMT +1. The time now is 12:39 PM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
New book about Steve Jobs << take part in it!
Arjan (3 Hours Ago, 09:37 AM)

Help! Stupid computer is automatically logging me out
Elizaboo (13 Hours Ago, 10:41 PM)

URGENT Help. Crazy talk Mac!
Joeker (14 Hours Ago, 09:42 PM)

PDF Document
yura (1 Day Ago, 12:13 PM)

Difficulties with internet speed (nothing to do with connection)
sammethh (1 Day Ago, 06:36 AM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51