odoc event not being dispatched correctly at App launch

Number:rdar://6808327 Date Originated:20-Apr-2009
Status:open Resolved:
Product:Mac OS X Product Version:10.5.6
Classification:Serious Bug Reproducible:Always
f you have setup a custom event handler for "open" in your sdef, it does not get called if your app is opened with an odoc event. It does get called once your app has launched though.

Steps to Reproduce:
1) Build attached project but do not launch it
2) Open up the TestScript.scpt file in Script Editor
3) Play the script
4) Play it again
5) Check the console logs

Expected Results:
In both cases I would expect to see handleOpenScriptCommand called.

Actual Results:
After step 3 I see _handleAEOpenDocuments
After step 4 I see handleOpenScriptCommand

If you continue to play the script you will get handleOpenScriptCommand until you quit ScriptingOpen.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!