Re: how to add comments to files (themselves)?
Anthony Thyssen <A.Thyssen-YlX7AVbyhojX/[email protected]> Mon, 7 Sep 2009 14:53:13 +1000
| Newsgroups | gmane.comp.gnome.apps.gqview.user |
|---|---|
| Message-ID | <20090907145313.64aa5ac5@wraith> |
On Sun, 06 Sep 2009 11:26:11 +0900 HaJo Schatz <[email protected]> wrote: | Florian Hollerweger wrote: | > Using GQview's awesome external editor functionality, I have tried | > various voodoo using 'jhead -ce' and 'wrjpgcom' - in the hope that I | > would get an external editor window to open into which I could write my | > comment. However, I didn't get this to work. | > | > Any ideas on how this could be implemented? | > | You could write a small shell script, calling e.g. zenity to fetch the | user's input in a dialog box, then write it to the file with, as you | suggested, jhead or similar. | I would love such a script. Better still I would love a script that would list the comments of all the image (either given or as a directory), and let you edit them all in one go. That would work a lot better for both viewing and for updating large numbers of images, than doing things bit by bit. One question though, a bit off-topic. There has always been the problem of whether a multi-line comment should end with a return or newline character. Single line comments rarely have a final newline, but multi-line comment have newlines as line separators. So should they also end in a newline? Anthony Thyssen ( System Programmer ) <A.Thyssen-YlX7AVbyhojX/[email protected]> ----------------------------------------------------------------------------- We only think, that computers think, we think! ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july