TiVoCommunity.com
(c)opyright 1995-2005 All rights reserved
indexcheckTC
This area is a static history of posts in the TiVo Community Forum Archive.
This archive history was made for the simple indexing of search sites like
Google.
Pages:1
Script Question
(Click here to view the original thread with full colors/images)
Posted by: TivoChris
Im currently writing a set of scripts to do some batch saving and when I get the program name, if it has more than 1 more is included in {}. Ex. The Matrix is displayed as {The Matrix}. I have been using the test=${test%*:} (an example -obviously not the only one I use), to edit the input of some files. Any way to get rid of the {} from the input? If the solution is more than I few lines I have another solution that Ill use, but Im trying to keep the scripts as small as possible because obviously the Tivo wasnt made to run its software plus a large number of other apps.
Thanks for any help. Oh btw for my batch save, you just enter the object IDs into an input file and my program plays them one after another. Im currently working on the output of the onscreen text but Ill post my files in a week or so. Im also thinking of allowing input from the remote so you wont need to have the shell up after you install it.
Posted by: Zirak
Looks like the variable you are using is a TCL list with one element. Instead of something like this:
set Title YourMovieNameVariable
try:
set Title [lindex YourMovieNameVariable 0]
vBulletin Copyright ©2000 - 2009,
Jelsoft Enterprises Limited.
vB Easy Archive Final ©2000 - 2009
- Created by Stefan "Xenon" Kaeser
Modified by Adam J. de Jaray