Apache OpenOffice (AOO) Bugzilla – Issue 78358
A blank document appears when trying to open an existing document
Last modified: 2008-03-20 11:01:01 UTC
When a user double-clicks on an existing OpenOffice.org document in the Finder, the program is launched and a new blank document opens. The desired behavior is to open the requested document. My hypothesis is that the Aqua port of OOo does not appear to handle the 'open documents' event that is delivered when the user double clicks on a document in the Finder. For more information about Apple Events Programming, please reference: http://developer.apple.com/documentation/AppleScript/Conceptual/AppleEvents/responding_aepg/ chapter_6_section_4.html#//apple_ref/doc/uid/TP40001449-CH206-CEGFFJBB
Confirmed. But this is not a P1 ( P1 is build breaker)
Created attachment 46020 [details] kAEOpenDocuments testcase (AppleScript)
My test case confirms that OOo does not handle the kAEOpenDocuments event. Here is the plain text version of the test case: tell application "OpenOffice.org 2.3" open the file "~/Desktop/Test.odt" activate end tell Please see the following URI for an example of how to register a handler for this event: http://www.mactech.com/articles/mactech/Vol.19/19.06/Studio54/index.html Regrettably, I only have an 800Mhz G4 iMac that is unsuitable for compiling OpenOffice from source. This should be a fairly easy fix for someone else to do. Thanks, Mark
@mheily: thank you for the excellent description and the links I'm implementing the handling of the important AppleEvents now.
.
VCL now handles these kCoreEventClass events: - kAEOpenDocuments - kAEPrintDocuments - kAEQuitApplication This fix will become active as soon as the blocking issue 79226 is fixed.
*** Issue 79446 has been marked as a duplicate of this issue. ***
With issue 79226 and issue 79228 being fixed OpenDoc and PrintDoc events work. Since installing the apple event handlers before the first event loop is listened to this also works now even when the application was not active at the time the documents were clicked.
Forgot to mention that the fix is in CWS aquavcl02.
*** Issue 79940 has been marked as a duplicate of this issue. ***
Fix got into CWS aquavcl02 and SRC680_m225 => closing
*** Issue 80939 has been marked as a duplicate of this issue. ***
*** Issue 79678 has been marked as a duplicate of this issue. ***