In the previous OS, to display a specific help file from my application, I wrote:
set helpPath to (current application's NSBundle's mainBundle()'s pathForResource_ofType_("Help/pgs/file", "html") as string)
current application's NSWorkspace's sharedWorkspace()'s openFile: helpPath withApplication:("/System/Library/CoreServices/HelpViewer.app")
It doesn’t correctly work anymore in High Sierra.
If I run the Help Mac and my help file after, it’s OK but impossible to directly display my file. Is it a bug of HelpViewer? I don’t know…
Same problem.
HelpViewer is running (seen in the Activity Monitor) but don’t display anything.
Before, if I open the Help from the Help menu (showHelp: action in the Interface), the file is open in HelpViewer.
Else… call the showHelp method before?
set myHelp to current application's class "NSApplication"'s sharedApplication()'s showHelp:("")