setting a fileType on Win with setRegistry

Terry Judd tsj at unimelb.edu.au
Tue Apr 18 01:30:02 EDT 2006


Thanks to Ken and Sarah for their help on the following.

As always, much appreciated.

Terry...

> 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.
>
> On a related note. Is there any way to get rid of the list  of 
> 'recommended' programs that appears in the 'open with' menu when you 
> right-click a file. I inadvertently added a couple of programs to this 
> list for my application when I was trying to get all of this working 
> and can't seem to shake them off, even when I delete the registry 
> entry.
>
> Cheers,
>
> Terry...
>
> Dr Terry Judd
> Lecturer in Educational Technology (Design)
> Biomedical Multimedia Unit
> Faculty of Medicine, Dentistry & Health Sciences
> The University of Melbourne
> Parkville VIC 3052
> AUSTRALIA
>




More information about the use-livecode mailing list