On 4/25/00 4:50 PM Jeremy Wadsack ([EMAIL PROTECTED]) wrote:

>Jason Linhart wrote:
>
>> On 4/25/00 3:40 PM Tom Wiebe ([EMAIL PROTECTED]) wrote:
>>
>> >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.
>>
>> 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.
>>
>
>Well, I don't know anything about AppleScript, but...
>
>If AppleScript starts a new Analog process for each call (in a fork-like 
>way),
>you should be able to run several processes, each with separate config files
>concurrently, provided that (a) none are dependent on previous runs (e.g.
>CACHEOUTFILE, CACHEFILE) and (b) you don't try to DNS WRITE the same dns 
>cache
>from concurrent processes (this is the only file I know of that would be
>locked).
>
>Of course, I'm assuming that each Analog run outputs to a different output
>file.

Just to clear up (add to?) the confusion, on a Macintosh only one copy of 
Analog can be running per copy of the application. If you have one copy 
of the application the above won't work, but if you had multiple copies 
of the entire Analog distribution you could launch them in parallel. That 
isn't really a good idea in most cases, you will probably run out of 
memory.

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]/
------------------------------------------------------------------------

Reply via email to