From: Jasper T. <ja...@si...> - 2021-10-27 10:16:09
|
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 |