On May 10, 2006, at 4:05 AM, Jean-Marc Lasgouttes wrote:

"Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes:

Bennett> The only remaining problem for me is that lyxrc.defaults gets
Bennett> read after lyxrc.dist, overwriting settings that should be
Bennett> defaults on Mac. That's the auto-view stuff....

Yes, I did not forget that. Once the autoopen patch is in, it would be
nice to make it work with osx too. Do you have an idea of the right
APIs?

I'm not sure what you mean: APIs for checking whether a viewer/editor exists for a given file type? Is this what you want?

<http://developer.apple.com/documentation/Carbon/Reference/ File_Manager/Reference/reference.html#//apple_ref/doc/uid/TP30000107- CH1g-TPXREF103>

In the terminal, a simple "open" command uses LSOpenFromURLSpec, returning an error if there's no default viewer/editor. I'm not sure if something like FSCatalogInfo will give us what we want without attempting to open the file. (I'm getting out of my depth here.)

Bennett

Reply via email to