From: Jasper T. <ja...@si...> - 2021-10-27 11:36:08
|
I’m sorry everyone, this was a red herring. All this change seems to have done is stop the app getting tried at all, resulting in an older version of the app being tried instead, which has the original Info.plist. The only reason I can think of why the older version works OK is that it is built for x86-64 while the newer one is combined x86-64 and arm64. Also the older one uses TclTk 8.6.10 whereas the newer one is TclTk 8.6.11. My machine is arm64. Well, nothing on the Mac is ever easy… —Jasper > On 27 Oct 2021, at 12:17, Jasper Taylor <ja...@si...> wrote: > > Have fixed this by including these lines in the Info.plist under CFBundleDocumentTypes: > > <key>LSHandlerRank</key> > <string>Owner</string> > <key>LSItemContentTypes</key> > <array> > <string>public.data</string> > </array> > >> On 27 Oct 2021, at 11:15, Jasper Taylor <ja...@si... <mailto:ja...@si...>> 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 >> _______________________________________________ >> Tcl-mac mailing list >> tc...@li... <mailto:tc...@li...> >> https://lists.sourceforge.net/lists/listinfo/tcl-mac > |