conehead77
February 25th, 2010, 12:42 PM
Hi,
i have a shell script which takes a URL as parameter. I want to obtain the current URL from my browser and then execute the script with it.
Ideally i could just right click and select "run my script" from firefox' context menu (just like "send link" in the context menu).
Any hints on how to do that? Do i need to write a firefox extension?
EDIT: If someone is interested how i solved it, here is the firefox extension i installed: External Application Buttons (https://addons.mozilla.org/en-US/firefox/addon/12892). The address bar can be given as a parameter to the external application.
i have a shell script which takes a URL as parameter. I want to obtain the current URL from my browser and then execute the script with it.
Ideally i could just right click and select "run my script" from firefox' context menu (just like "send link" in the context menu).
Any hints on how to do that? Do i need to write a firefox extension?
EDIT: If someone is interested how i solved it, here is the firefox extension i installed: External Application Buttons (https://addons.mozilla.org/en-US/firefox/addon/12892). The address bar can be given as a parameter to the external application.