CompuServe Thread

#App switching with AS

2 messages in this thread
#164007From: Mark AltenbergMar 15, 1994 1:05 AM
I'm having a few Applescript problems that are driving me up the wall. I'm using Applescript 1.1 with the scriptable Finder on System 7 Pro on a Quadra 800, and my problems seem to occur when I switch between scriptable applications. I've written a script that activates Filemaker Pro at a certain point, then executes a DoScript command that activates a Filemaker script which imports some records into a master database. The problem occurs when I open the database into which I am importing. I use a Quickeys PlaybyName command to open the Filemaker database using the password assigned to it. The script successfully opens the Filemaker database, but once it is open the script seems to lag there and not execute the Filemaker script as it is supposed to. The only way to re-activate the script is to manually switch over to Applescript through the application menu, or by clicking on the actual script's window, if it is open. Only then does the script continue to run. I've had this problem with a number of other scripts, where a scripts lags until a statement either times out, or I re-activate Applescript. I'd like to know if this is an Applescript design flaw, or a problem with the scripts that I'm writing. Mark
#164052From: Jeff FischerMar 15, 1994 11:07 AM
Mark: I had a similar problem. I wrote an AS application to drive through a folder full of MS Word docs, opening each one in turn and firing off a QK Sequence Shortcut in Word to save the file as text. Problem was that it "hung" in Word after the Save As… operation and never returned to my AS applicaion. I got around it by creating a Shortcut to choose my AppleScript application from the Application menu, and then inserted this Shortcut as the last one in the Save As… Sequence to "goose" my AS application into action. Seems awfully inelegant…but it works. Jeff Fischer The Fischer Group