I also have the activateFileViewerSelectingURLs method in the plugin.
But it’s for newer Mac OS X 10.6 and later and not sure what compatibility Jim needs.
My app is RVCare Log Book and the file(s) are references, like Pdf, text,jpg, etc. The user would click on the list to open the file. What I’m going to do is change to ‘reveal in Finder’ (which already works). Then the user would continue by clicking the finder file list.
However I don’t think there are very many user who use this feature. OH WELL!
I was having issues with a HTMLViewer CancelLoad earlier whereby I accidentally discovered ShowURL(FolderItem.URLPath) will open the file with it’s default application. Just for kicks, see if ShowURL works.
Instead of file.launch, for documents, I use a shell and the command Open. For instance Open toto.pdf would open the pdf file in the default reader, Preview, or Acrobat Reader. It works perfectly in a sandboxed application.
'cmd = "osascript -e 'Tell application ""Finder"" to reveal """ + Native2AbsolutePath(file) + """' -e 'Tell application ""Finder"" to activate'"
'shell1.execute(cmd)
and it was getting sandbox error, so I changed it to NSWorkSpaceMBS to get around the error.