Posts: 39
Joined: Mar 2005
Reputation:
-10
wHack
Junior Member
Posts: 39
Is there a way to associate a script with a file type. I've noticed in q:\system\python\Lib the are JpegImagePlugin.py and GifImagePlugin.py both of which have file association tags at the end.
I've written a text viewer and I'd like to associate it too text files. Can this be done and how? Will the script need to be in q:\system\python\Lib??
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
No you cannot associate a script with a filetype. Those two py files you mention are used by Python to decode those image types; not by Xbmc. You'll have to add a simple filebrowser to your text viewer so you can pick a file.
Posts: 39
Joined: Mar 2005
Reputation:
-10
wHack
Junior Member
Posts: 39
wow that really sucks it would be a really nice feature and having a text viewer or better yet editor that opened files from the filebrowser would be an awsome feature. I hate having to open unleash x or ftp'ing text files over to read or edit them. XBMC seems just laking in that area. When so much of the XBOX software out the is set up from text files. As for a siple filebrowser I already did that I just used xbmcgui.Dialog().browse(1,"a file","files"). It works a treat. but really falls short of the usability of an integrated text viewer / editor.