Re: Modem query via AS?
Re: Modem query via AS?
- Subject: Re: Modem query via AS?
- From: Emmett Gray <email@hidden>
- Date: Mon, 23 Apr 2001 02:48:01 -0400
On Sun, 22 Apr 2001 21:12:19 -0700, SeaSoft Systems <email@hidden> wrote:
I want to query a modem connected to the modem port to see if it is
alive and well with Applescript.
<snip>
Here's one possible way to do it. There's a HyperCard xcmd called
HyperCard CTB Toolkit
(
ftp://ftp.apple.com/developer/Tool_Chest/Development_Platforms/HyperCard_Related/APDA_HyperCard_Toolkits).
It allows you complete control of a modem. (In the same directory
there is also the Serial Toolkit, which is geared to data
connections, and is not as flexible, but may be well suited for what
you are doing).
You could access this using the XCMD osax
(
http://www.osaxen.com/index.php3?id=xcmd) . But to do so you would
have to do some pretty technical stuff with ResEdit and an aete
editor to get this xcmd into the osax, as it is not part of it as
supplied. If this is not daunting then that would be the most elegant
way to proceed. (I have not tried this myself; perhaps someone who
has gone through the process could comment on how difficult it is to
add a new xcmd).
Otherwise, since HyperCard is scriptable, you could install the xcmd
in a stack (such as the home stack) and access it in a HyperCard tell
block.
I use this xcmd myself in my custom address book stack as a phone dialer.
--Emmett