[Digikam-users] Not completely but a bit off topic question: looking for texteditor with macro capabillity
photonoxx at free.fr
Sat Aug 27 14:07:44 BST 2011
My Answer is may be a little off topic too, but you probably could use
spreadsheet to do that...
I explain (this works with libreoffice calc and gedit as texteditor) :
- You have your list in a text editor with one row per file.
- Select all, copy and paste this in a spreadsheet. You should have a
dialog appearing to customize import of text info in a spreadsheet (for
example create column when there's a "\"). With no option modifying, your
list create one column with your list inside and one row per file.
- Copy paste this column, and search and replace what you want in this
second one (for example, replace "d:\" by "o:\")
- insert a new column at start, and fill it with your prefix (here "move").
- Select cells of your three column, copy and paste theirs to your text
- optionally, replace tabulation by space.
You have your modified list which can be used as a batch file.
Le Sat, 27 Aug 2011 11:54:21 +0200, sleepless <sleeplessregulus at hetnet.nl>
> Hi all,
> There is so much knowledge around here that I give it a try, i hope the
> moderater will let me.
> I have been using for about 25 years PE.exe. This is a programmers
> texteditor from word perfect.
> for example you could do in dos ¨dir > dir.lst
> open the document pe dir.lst
> it shows for example
> a list of
> then very easy make a macro to put in front ¨move ¨ ¨
> then search for ¨\¨ then block and search twice again for ¨\¨
> than copy the ¨\foto\digikam\¨ part
> put at the end of the row ¨¨ O:\and paste
> and add copiedphoto.jpg
> now you have something like
> move ¨d:\foto\digikam\photo.jpg¨ ¨O:\foto\digikam\photo.jpg¨
> and you can apply it to all rows.
> make it a batch file and execute.
> And as you all know by now, I am after saying goodby to windows, this is
> the next problem to tackle.
> Yes, it is a horrible example, but how do linux people do things like
> You can do things to an amazing extend of complexity. I used this very
> much to get things done that no program in the world ever could.
> Thanks in advance for tips.
> Digikam-users mailing list
> Digikam-users at kde.org
Photographe chasseur de lueurs
More information about the Digikam-users