Re: Locating A Menu Item
Re: Locating A Menu Item
- Subject: Re: Locating A Menu Item
- From: Charles Arthur <email@hidden>
- Date: Tue, 29 Jul 2003 11:31:50 +0100
On Mon, 28 Jul 2003 11:46:20 -0700, Jim Lindholm <email@hidden> wrote:
..
>
And... yes, you are correct, I am trying to script a modem connection
>
WITHOUT using Internet Connect... Jim
I'm sure I've read this thread all the way through, and I don't understand
your antipathy to launching IC if you're so mad keen to script this.
After all, you could simply launch it at login if this is going to be some
completely unattended machine (because you'll still need to log in, after
all). It's not going to take up any significant memory or processing power
unless it's actually doing something - remember, this is Unix, not Classic
Mac, where there was a real penalty for having any app running. Quiescent
apps will get paged out if needed in OSX.
Then you know you'll have the app available, and be able to script
connect/disconnect. All this stuff with GUI scripting menu items frankly
seems like scripting masochism.
The suggestion of a "do shell script" with pppd (which has a very thorough
manual - man pppd in the terminal) looks like the closest you'll get to a
pure AS solution without having Internet Connect launched. But having
scanned the manual, I suspect you'll find the solution suggested above
simpler. You can write a script that will tell IC to connect; then you can
define a key combo (using iKey or Keyboard Maestro) that will launch that
script for you from the keyboard from any or all apps.
After all, if you were going to write a GUI script, you'd still have to
activate it, and that would require some mouse work...
This all reminds me of what Douglas Adams said about scripting - something
along the lines of spending a whole day writing a program to save five
minutes. (The exact quote eludes me, and Google.)
Charles
--
----------------------------
http://www.ukclimbing.com : 1100+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. And there's even a cool shop attached.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.