View Single Post
Old 04-18-2013, 03:59 PM   #81
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Lucas Malor View Post
? Is this a "write it yourself"? :-P

EDIT: or are you saying "you can write shell scripts, modify the kobotweaks.ini and voilą"? Unluckily you can't open files or change the output path with the editor.
The idea is to have
1) a text file, for instance "myscript.txt" in the notepad text files folder
2) a bash script file, for instance "runmyscript.sh" that copies the "myscript.txt" to any place (or to the same folder) with the new name "myscript.sh" and then executes it.
3) an new entry in the ini file of the kobo launcher to the effect that you can call runmyscript.sh (I guess you can also use kobotweaks.ini here, if you still have a free slot)

Next you would write some commands into the "myscript.txt" file, save it, close notepad, launch "runmyscript.sh" from the kobo launcher.

For those characters you are likely to use in your scripts, but are not accessible via the keyboard (I did not see ">", but maybe it is somewhere there) you could prepare the "myscript.txt" file on your pc and include the needed characters in as comments in order to copy and past in when needed. Another way would be to write some placeholder strings instead fo those characters and replace them by some commands in the "runmyscript.sh".

I know this is not very comforable, but it seems to me an acceptable way of dealing with the operating system for small tasks.
tshering is offline   Reply With Quote