setting a fileType on Win with setRegistry

Sarah Reichelt sarah.reichelt at gmail.com
Mon Apr 17 19:48:21 EDT 2006


On 4/18/06, Terry Judd <tsj at unimelb.edu.au> wrote:
> According to the documentation 'setRegistry("HKEY_CLASSES_ROOT\.abc\",
> "def")' should allow you to double-click a file with a '.abc' extension
> and have it open with application 'def'. Seems straightforward but I
> just can't get this to work for my Windows application. I'm not that
> familiar with Windows so I could be missing something (or doing
> something terribly wrong) but the only way I've been able to get the
> double-click launch thing happening is to go to the fileTypes tab in
> the folder options control panel in Windows (XP), locate the entry for
> my application (which gets created OK using setRegistry) and add an
> 'open' action that explicitly points to my application. If I don't do
> this, I can't even get the 'open with' option when I right-click a file
> to work. I can 'browse' to locate my application OK but it just doesn't
> open and isn't added to the list of programs. I've tried deleting the
> registry entry (both from within Rev using the deleteRegistry function
> and via the 'folder otpions' control panel) and restarting my computer
> before going through the motions again - all to no avail.

I'm not a Windows person either, but I got it to work using the info
on Ken Ray's site. Try this tip
<http://www.sonsothunder.com/devres/revolution/tips/file004.htm>.

Cheers,
Sarah



More information about the use-livecode mailing list