[Pythonmac-SIG] Can't register Apple Help book with Carbon.AH module
Bob Ippolito
bob at redivi.com
Tue May 31 06:06:15 CEST 2005
On May 30, 2005, at 8:58 PM, Kevin Walzer wrote:
> I'm trying to format some help docs into Apple Help format for an
> application I'm working on, but I can't get the help book registered.
> Here is my code:
Did you try putting it in the Info.plist? It should be automatically
registered by LaunchServices on launch.
> from Carbon import AH
> import os
> path = ??
> AH.AHRegisterHelpBook(path)
This stuff is probably way deprecated. Look in the Apple docs.
> The difficulty I'm having is defining the path to the help
> documents in
> the application bundle. I've tried hard-coding the path as
> /path/to/Contents/Resources/Help Book/index.html, but that yields
> "file
> not found." I've looked at the source docs for PythonIDE, but
> they're a
> bit cryptic. I don't quite understand how the Carbon module defines
> this
> stuff (FSSpec, etc). (I'm working with wxPython, so I need to define
> this stuff
> through Carbon.) Is there a way to do this with the os.path module? If
> so I haven't quite grokked how.
Carbon.File.FSRef(someUnixPath)
-bob
More information about the Pythonmac-SIG
mailing list