开发者

Can Apple Help books handle links using a custom URL protocol?

I'm writing a help book for a Mac application to be released in the Apple Mac App store.

When it preview the help book in Safari, links that use a custom URL protocol launch my app 开发者_Go百科and pass it the URL. This is very useful for the help book, since the app lets you create documents using info encoded into a custom URL.

Once I build the help book into my app and read it using the help viewer, however, the links don't work any more.

It looks like the help viewer only supports the HTTP protocol. Has anybody else found a work-around for this? I really don't want to create HTTP links that route to a web server, and get redirected to a custom URL that ends up launching our app. That would be a bad user experience, and would mean using the help book required a live Internet connection.


You can run AppleScripts from help books (x-help-script://...), so you could easily create a generic URL launching mechanism this way (or a specific one to target your app). More information here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜