Hi.
This is enough nonstandard task.
There are no standard ways for extension to communicate with outside applications.
There is no such ability in Chrome.
For FireFox such ability disappeared when they stopped to support the XPCOM.
May be something can be done using NPAPI, but no guaranties that this will be supported in future.
I can try to do something, but can't promise the results.
Thanks.