2005-08-19, 02:40
i think the presentation of scripts should be handled in an identical method to the
my programs view.
the current script window is no better than a file view with a .py filter. imagine if you
had to do this with launching xbe's.
also i dont think anyone likes the need to copy our favorite scripts into the 'scripts'
folder for a new installation. (i dont even think the location of the scripts folder is
configurable in the xboxmediacenter.xml).
this is what i recommend:
add to xboxmediacenter.xml a <myscripts> tag in a similar vein to the <myprograms> tag.
these bookmark locations will be scanned recursively to the depth (default 1) for
a default.py file (similar to the scan of a default.xbe file). if this is found it is
added to the list with a custom icon if present. since the name isnt embedded in the
file like with an xbe though the name of the containing folder is used.
what do you all think?
if you are worried about renaming older scripts how about scanning for default.py
or <foldername>.py? hopefully the code from my programs can be used.
previous discussion in changing scripts window
my programs view.
the current script window is no better than a file view with a .py filter. imagine if you
had to do this with launching xbe's.
also i dont think anyone likes the need to copy our favorite scripts into the 'scripts'
folder for a new installation. (i dont even think the location of the scripts folder is
configurable in the xboxmediacenter.xml).
this is what i recommend:
add to xboxmediacenter.xml a <myscripts> tag in a similar vein to the <myprograms> tag.
Quote:<myscripts>
<default>f:\scripts\media\</default>
<bookmark>
<name>all scripts</name>
<path>f:\scripts\</path>
<depth>2</depth>
</bookmark>
<bookmark>
<name>media</name>
<path>f:\scripts\media\</path>
<depth>1</depth>
</bookmark>
<bookmark>
<name>news</name>
<path>f:\scripts\news</path>
<depth>1</depth>
</bookmark>
<bookmark>
<name>tv guides</name>
<path>f:\scripts\tvguides</path>
</bookmark>
</myscripts>
these bookmark locations will be scanned recursively to the depth (default 1) for
a default.py file (similar to the scan of a default.xbe file). if this is found it is
added to the list with a custom icon if present. since the name isnt embedded in the
file like with an xbe though the name of the containing folder is used.
what do you all think?
if you are worried about renaming older scripts how about scanning for default.py
or <foldername>.py? hopefully the code from my programs can be used.
previous discussion in changing scripts window