Help needed with FMPro and Apple Events or Lasso/Apple Events

Help needed with FMPro and Apple Events or Lasso/Apple Events

Post by DubMaste » Sat, 06 Oct 2001 02:28:23


I need an third party opinion please

My setup:
1 (computer "A") G4 running WebSTAR 4.4 with Lasso Lasso WDE
1 (computer "B") G4 with FileMAker Pro 5 unlimited

so far I succeeded to activate Filemaker scripts on "B" by accessing a
webpage on "A"

Now I am having one problem with the Filemaker, running on "B"

On that computer I have a couple of line scripts, which are all working
fine, but once I stick them together into one script, they are not
keeping their order anymore.
the three scripts are (in that order):

1) sent Apple Event ["makekeyword","aevt","oapp"]
   (this activates an AppleScript, which is doing something to a file          
(keywords) and produces another file, (keywowrds_out) I also specified
"wait for event completion before continuing")

2) Perform Script ["Sub-Scripts", "Import Keywords"]
   (this is pretty straight forward, a script, with 'no dialog', which
is taking the in step 1 produced file "keywords_out" and imports it
into the Database.

3)  sent Apple Event ["delete keywords","aevt","oapp"]
   (an applescript, which deletes the 'keyword' and 'keyword_out' files)

Any Idea, what I could do, that FileMaker keeps the order of the

what usually happens is, that it starts fine, with the first step, but
before it is completed, it imports the keywords into the DB, which goes
very fast (because the previous step didn't complete yet, it is missing
a lot of records) and right after it finished the import, it deletes
the two files as it is supposed to do, only problem, the first step
still didn't terminate yet.

Any ideas, about how to deal with an issue like this?
This has to be running totally automatic, so, I can't really put a
pause/resume step into it.
I thought of running three steps separately, but I don't know, how I
could get the  feedback  that the script has terminated.
because only then, I should be able to activate the next step.

There is the last alternative, I could see, and that would be , sending
an AppleEvent through Lasso (computer "A") to the remote machine, which
hosts the FMPro + the scripts, but I always get errors , there, any
idea, how to hardcode an link, which sends an Apple Events to another

any help would be very much appreciated.



1. Apples and apples or Apples and oranges?

I hate like hell to do this but I really need to know:

What are the main differences between Access 2.0 and FoxPro 2.6?

I am going to be setting up a basic system for a music store I work for
(customer, invoice, etc.) and I have used Access in the past but the store
has bought FoxPro already.  Is FoxPro way more than they need?  It seems
to be more time-consuming to do the things I could do in Access quite

Thank you,

Jeff Langille   |"...if I were standing next to you with a metronome and   !

Halifax, N.S.   |would insist that the rhythms be accurate , and that only !
Ibanez RG770    !the pitches which reside outside the basic tonality       |
5150 amp        |(the original "wrong notes") could be altered." - FZappa  !

2. port number for Filemaker 6?

3. Script / apple event help

4. How to: Query Text File by using OpenQuery( ) ?

5. Send Apple Event newbie question

6. passing handle of current form to lib proc

7. Sending Apple Events to the web


9. Send Apple Event?

10. using apple event and file path to open a non-FMP document

11. send apple event open document

12. Send Apple Event - do script - field

13. Sending Apple Events with Parameter from a Field