At 12:25 -0400 2002.04.09, John Gruber wrote: >As a side note, I don't see any documentation in the 5.6.1 >distributation regarding the AppleScript interface. In the old >5.2.0r4 distribution, there was a file named MacPerl.Frontend which >briefly covered this. Am I missing something, or should I sharpen up >my POD-writing pencil?
D'oh, I meant to include the old files, but only temporarily, as they really should be rewritten as POD. Your POD-writing pencil would be most appreciated! That said, duplex mode should do it. Remote mode wants you to do more work after initiating the event, whereas in Duplex mode, it does the extra work for you to some degree, IIRC. Do this: tell application "MacPerl" Do Script "sleep(1)" mode Remote end tell Then look in MacPerl ... it is still trying to do work when the script ends. Quit MacPerl (you may have to force quit!) and try again with mode Duplex, and it is fine after the script ends. However, perhaps the Right Way to do it is just to handle it in AppleScript, telling AppleScript not to wait on the response instead of telling MacPerl to return one. tell application "MacPerl" ignoring application responses Do Script "sleep(10)" end ignoring end tell -- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Development Network [EMAIL PROTECTED] http://osdn.com/