Re: UI Scripting Network...
Re: UI Scripting Network...
- Subject: Re: UI Scripting Network...
- From: "John C. Welch" <email@hidden>
- Date: Thu, 29 Apr 2004 19:01:08 -0500
On 4/29/04 6:03 PM, "Bill Cheeseman" <email@hidden> wrote:
>
> I am trying to create a GUI applescript that edits the Network
>
> Location. I can change the location but I cannot edit or create a
>
> new location. Has anyone gotten this to work?
>
>
This will work:
>
>
tell application "System Preferences" to activate
>
tell application "System Events"
The problem here is that by the time you get done writing and testing all
the UI code to get all the data filled in for a new location, you could have
done it manually.
On fifty macs
Twice
And the chances of it working consistently are slim.
What SHOULD happen, and I'm REAL sure it's been filed as a bug is that Apple
needs to, in order of preference:
1) Create a system OSAX or scriptable application that exposes the
functionality of scutil
2) Fully document scutil so you don't go insane trying to use it.
Getting scselect to return nicer results wouldn't suck either.
This is still my single biggest beef with OS X. It is *far, FAR* too
difficult to change the network setup of a remote machine correctly. You can
do this in OS 9 with relative ease. It's ridiculous. This is a highly solved
problem, and the fact that in the 4th major release of Mac OS X I still
have to pay the ARD/third party application tax, or jack my arse all over a
building just to change a friggin' IP address on a remote machine. I cannot
tell you how poor it makes Apple look to sysadmins. "WTF, I have to spend a
couple hundred to change a remote IP address? Is Jobs still dropping acid?"
That, and the inability to easily create printers with AppleScript is just
stupid at this point in the game. Prior to 10.3 it was just annoying.
john
--
"I want to have babies.
You want to have babies?!
It's every man's right to have babies if he wants them.
But...you can't have babies!
Don't you oppress me!
I'm not oppressing you, Stan. You haven't got a womb. Where is the fetus
going to gestate? You're going to keep it in a box?"
_______________________________________________
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.