[futurebasic] Re: [FB] AppleEvents

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1999 : Group Archive : Group : All Groups

From: Russ Pagel <russp@...>
Date: Tue, 14 Dec 1999 18:59:42 -0500
That's a good point but there are two difficulties:

1.  I've never used AppleScript before so it'd probably take 
    me as long to create a Quit script as to find the 
    solution to AE.  Also that introduces a new variable (did
    it not work because of the script or because of the program?)

2.  I don't even understand what FN OPENWD does so I'm hesitant to 
    mess with it too much without knowing any possible consequenses.

What I did was take the Apple Events example; follow the instructions in
the Handbook and test it.  When I found that it only works sometimes, I
added some PRINT "Got Here " lines to the example and found that it
stumbled on the oserr=FN OPENWD line.  according to IM the error (-43)
means there is no such directory.  

I've never used most of the stuff in the example before (ENTERPROC,
obscure ToolBox calls, etc.) so I kind of at a loss.

Maybe its an OS-8 issue.  I'm running a Performa 6360 PPC, OS 8.1

Has anyone else ever tried to run that particular example? 

Thanks

rp



> Russ, 
> 
> You seem to have already checked the obvious. The examples are very good and 
> can easily be incorporated into most projects with minimal effort. 
> 
> Is it possible you are using FN OPENWD incorrectly? For example, the 
> VolRefNum% is often confused with WDRefNum% owing to certain similarities. 
> 
> Presumably, you have already checked the AE routines themselves are working 
> by removing the offending FN WDOPEN code and watching the results? For 
> example, sending Quit from Apple ScriptEditor does actually Quit the 
> application? 
> 
> Hope this helps, 
> 
> Deep