Re: When did Remote Access Commands get depreciated?
Re: When did Remote Access Commands get depreciated?
- Subject: Re: When did Remote Access Commands get depreciated?
- From: email@hidden
- Date: Tue, 3 Apr 2001 08:41:13 -0500
On April 1, 2001 at 11:37 AM, Emmanuel <email@hidden> wrote,
>
At 5:25 +0200 1/04/01, email@hidden wrote:
>
>
>The AppleScript Sourcebook provided me with the solution to this problem, by
>
>pointing out that 9.1 scripts use Network Setup Scripting instead of Remote
>
>Access Commands, so I was able to rewrite my script to use the newer command.
>
>(Thanks, Bill Cheeseman!)
>
>
Not sure I understand. I thought that Network Setup Scripting's "status"
>
does not work. Here, it freezes and eventually errors timing out. Can you
>
confirm it works with you, and if it does, would you share a few lines for
>
me ?
It doesn't. When I tested my rewrite, I saw the same symptoms you are seeing.
I feel like the mathematician who, waking up to find his house on fire, staggers
into the kitchen, turns on the tap, sticks his hand under the running water, and
says "A solution exists," and goes back to bed.
So now I need to restate my original question, in two parts:
A. When I try to use "PPP status" from "Remote Access Commands" I get the error
"Can't load Apple Shared Library Manager." This is under Mac OS 9.1; it worked
fine under 8.6 and 9.0.1.
2. In Network Setup Scripting, trying to get the "status" property of a Remote
Access configuration results in a timeout; the Network Setup Scripting FBA
doesn't respond. Yes, I'm putting the call in a "open database ... close
database" block (and a "begin transaction ... end transaction" block, although
that shouldn't be needed, since I'm not modifying anything).
Does anyone know how to work around these problems, or can anyone suggest any
other approach? I'm simply trying to see if PPP is already connected. I have a
script that nightly connects to Quicken's stock quotes server to get the prices
for my portfolio. Quicken is not scriptable, so I'm using "Menu Events" and
"Sigma's Additions" to manipulate the user interface, and there are some timing
issues if a menu selection sometimes takes 10 seconds (if PPP is already
connected) and sometimes takes 30 (if the machine has to dial out). Also, if
the script is what made PPP connect, then I want the script to disconnect PPP
when it completes, but if PPP was already connected, the script should leave it
alone.
For now, I've just set all the time delays to their worst-case maximum, and let
PPP time out and hang up.