| Article: |
Scripting Mac OS X | |
| Subject: | Scripting Internet Connect | |
| Date: | 2005-03-07 08:03:21 | |
| From: | Larriestyle | |
|
Hi. I am currently trying to write an applescript script that will set a users DUN, to enable them to dial into a specified number, URL and essentially act as a mode of getting the user on line through a narrowband phone line.
|
||
Showing messages 1 through 1 of 1.
-
Scripting Internet Connect
2005-03-07 08:50:16 jamesreynolds [View]



The way you find out if an application is AppleScriptable is you drag it (the app) on top of Script Editor and let go. Script Editor will open the application's dictionary if it is AppleScriptable or give you a message if it is not AppleScriptable. Even if it isn't AppleScriptable, you could probably do what you wanted with Apple UI scripting:
http://www.apple.com/applescript/uiscripting/
http://www.tidbits.com/tb-issues/TidBITS-670.html#lnk3
If it is scriptable, you just have to read the dictionary to find out how to do what you want.
If you are scripting the network settings, AppleScript might not be the best tool. Look into scutil (type "scutil --help") or ncutil (http://deaddog.duch.udel.edu/~frey/darwin/ncutil.php).