--nextPart1745217.y7Op7Mf6T3 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8Bit David Faure wrote: >> Moreover, how can I attach this script to key shortcut ()? > You can't - DCOP is out of process... We'd need a dialog for defining new > actions and binding arbitrary shell commands to them... And those actions > would need to be saved - into the document? or into the app's config file? Thanks a lot for your hints! I am eagerly waiting (although not holding my breath) when you will make the missing parts to make it useful even for this. And no, I wouldn't put macros into the document -- it seems to ask for a misuse (although, OOo allows it, doesn't it -- how to make KWord compatible with OOo 2.* format when not supporting embedded macros?). I liked the solution how it is done in Kate (the page is in Dutch, but even I was able to decipher it) -- the scripts are in a special directory with their .desktop files (see attached). > [snip kommander - no clue about that myself] I think it may be usefull, when you need full VBA replacement (dialog boxes etc.), but it is probably useless for this kind of small scripts. Correct me, anybody, if I am wrong. Best, Matej -- Matej Cepl, http://www.ceplovi.cz/matej GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 I love deadlines. I like the whooshing sound they make as they fly by. -- Douglas Adams --nextPart1745217.y7Op7Mf6T3 Content-Type: application/x-desktop; name="wordcount.desktop" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="wordcount.desktop" W0Rlc2t0b3AgRW50cnldCkVuY29kaW5nPVVURi04Ck5hbWU9V29yZCBDb3VudApOYW1lW25sXT1X b29yZGVuIHRlbGxlbgpOYW1lW2NzXT1Qb8SNw610w6Fuw60gc2xvdgpUeXBlPVNoZWxsU2NyaXB0 L2Jhc2gKWC1LREUtU2NyaXB0TmFtZT13b3JkY291bnQuc2g= --nextPart1745217.y7Op7Mf6T3 Content-Type: application/x-shellscript; name="wordcount.sh" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="wordcount.sh" IyEvYmluL2Jhc2gKCmNhc2UgIiQxIiBpbgogICAgICAgIGthdGUqKSAgOzsKICAgICAgICAqKSAg ICAgIGVjaG8gIlBsZWFzZSBjYWxsIG1lIGZyb20gS2F0ZSIgPiYyCiAgICAgICAgICAgICAgICBl eGl0IDEKICAgICAgICAgICAgICAgIDs7CmVzYWMKCmRvYz1gZGNvcCAkMSBLYXRlRG9jdW1lbnRN YW5hZ2VyIGFjdGl2ZURvY3VtZW50TnVtYmVyYApkY29wICQxIEVkaXRJbnRlcmZhY2UjJGRvYyB0 ZXh0IHwgd2MgfCB7CiAgICAgICAgcmVhZCBsaW5lcyB3b3JkcyBjaGFycwogICAgICAgIGtkaWFs b2cgLS10aXRsZSAiUG/o7XRh6CBzbG92IiBcCiAgICAgICAgICAgICAgICAtLW1zZ2JveCAiPHF0 Pjx0YWJsZT4KICAgICAgICAgICAgICAgIDx0cj48dGQ+UG/oZXQg+OFka/k6PC90ZD48dGRhbGln bj1yaWdodD48Yj4kbGluZXM8L2I+PC90ZD48L3RyPgogICAgICAgICAgICAgICAgPHRyPjx0ZD5Q b+hldCBzbG92OjwvdGQ+PHRkIGFsaWduPXJpZ2h0PjxiPiR3b3JkczwvYj48L3RkPjwvdHI+CiAg ICAgICAgICAgICAgICA8dHI+PHRkPlBv6GV0IHpuYWv5OjwvdGQ+PHRkIGFsaWduPXJpZ2h0Pjxi PiRjaGFyczwvYj48L3RkPjwvdHI+CiAgICAgICAgICAgICAgICA8L3RhYmxlPjwvcXQ+Igp9 --nextPart1745217.y7Op7Mf6T3 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ____________________________________ koffice mailing list koffice@mail.kde.org To unsubscribe please visit: https://mail.kde.org/mailman/listinfo/koffice --nextPart1745217.y7Op7Mf6T3--