On 4/25/00 3:40 PM Tom Wiebe ([EMAIL PROTECTED]) wrote:
>I'm banging my head against the wall trying to get Analog to use a
>specific Log file on the macintosh.
>
>Basically, I'm trying to loop through a number of different config files,
>creating a different report for each one. If I drop a config file onto
>Analog, it works fine, but If I call it from a script, my results are
>variable at best.
>
>I've tried
>
>tell application "Analog 4.1"
> open file "pathto:myconfigfile.cfg"
>end tell
>
>Which works great, but I don't seem to be able to loop through a list of
>them, Analog just says it can't open the file.
Ah, a Macintosh user.
When you run Analog it can only process one file and then it needs to
quit. To process multipule files you need to wait till the previous run
of Analog completes. It's been a long time since I worked with
AppleScript. There is some kind of IsRunning command that tells you if an
application is currently running. You need to loop till Analog isn't
running and then launch the next one.
>I've also tried using the "do script" command, but this tells me that my
>logfile is corrupt and can't be read (although it works fine if I open
>Analog by dropping the config file on it).
The 'do script' message takes a Unix style command line, what command
line are you passing? If you just pass a file name, Analog assumes it is
a log file. This is the same way that command line options to Analog work
on Unix but it is different from Drag and Drop.
>Any help would be greatly appreciated.
Good Luck
Jason
-----------------
[EMAIL PROTECTED]
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
-- Peter van der Linden, Expert C Programming, Deep C Secrets
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------