From: Kevin W. <kw...@co...> - 2021-10-27 11:31:21
|
Hi Jasper, On 10/27/21 6:15 AM, Jasper Taylor wrote: > Hi MacTclers, > I have a long standing problem that if I double click a file that is > handled by my app, or if I drag it to the app’s icon, I get an error > message like this: > > *The document “posning.sml” could not be opened. Simile cannot open > files in the “com.Simulistics.sml” format.* > * > * > The app then opens without opening the document. However, if I do the > same thing when the app is already running, the app’s > tk::mac::OpenDocument procedure is called and the document opens. I > also have tk::mac::OpenApplication and tk::mac::ReopenApplication > defined, but neither are called in the first case. > I enabled the ‘com.apple.security.authorization.apple-events’ key when > signing the code, but this does not seem to change anything. > Any help very much appreciated! > —Jasper This bug was reported on the list last spring, and I committed a fix in 830e5b70 - it probably hasn't made it into a new Tcl/Tk release yet. Can you try building the tip of core-8-6-branch? It should address the issue. Thanks, Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com |