View Single Post
Old 04-14-2012, 11:47 AM   #3615
Analogus
Fanatic
Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.
 
Analogus's Avatar
 
Posts: 568
Karma: 2170348
Join Date: Apr 2011
Device: 2x Sony PRS-350; PRS-300 (†), Paperwhite (†), Voyage
Question to developers:

I want to edit a specific TXT-file with the MEMO-App on/with my reader. How to manage it?

More info:

I have a specific TXT-file on a specific place on the reader. I want to be able to edit this file with the memo-application. Why?
Idea is to edit CSS-files without plug the reader to the PC. I tried to solve it with the functionality allready exists (copy notes to txt and vice versa).

My code goes like that:
Code:
...
case 'CopyTo':
	Core.shell.exec ('cp -f /Data/Notepads/1334415424314.963.note.txt /Data/database/system/PRSPlus/epub/CSS/extern.css'); 
break;

case 'CopyFrom':
	Core.shell.exec ('cp -f /Data/database/system/PRSPlus/epub/CSS/extern.css /Data/Notepads/1334415424314.963.note.txt'); 
break; 
...
Problem is a NEW TXT-file in /Notepads will not be recognized as Memo. And every new memo gets a new filename. If I would delete this note, code is not working any longer.

Any ideas?

A.
Analogus is offline   Reply With Quote