How to make multiple run actions with Rox's SendTo
Posted: Tue 14 Jun 2005, 00:19
The purpose of this little how-to is to explain how to have different run actions with Rox. As you have probably learned, clicking an icon in Rox will execute the run action, if a run action is defined. For example, clicking on a .txt file will open the file with leafpad.
You can change the run action by right clicking on the icon and select 'Set Run Action ...', if the option is available for that particular type of file. If you want to change the run action for a .txt file, you can enter 'beaver' in place of 'leafpad'. Thereafter, your text files will open with Beaver when you click on them with Rox.
Suppose I would like to open a .html file with Firefox, I simply set the run action to 'firefox'. Easy enough. But sometimes I want to open a .html file with Mozilla Composer. In other words, I would like options to open files with different applications, to suit my needs. It is pretty easy to do using Rox's SendTo.
In this example, I will show you how to open a .html file for editing in Mozilla.
Make the following shell script:
------------
#!/bin/sh
mozilla -edit "$@"
-------------
Name the file something like: mozilla-composer
Right click permissions and make the file executable
Move the file to /root/Choices/SendTo
That's it.
Now if you want to open a .html file for editing instead of viewing, you can right click on it, and send it to mozilla-composer in Rox's SendTo
Of course you can to this will all types of files and programs. I just used the .html as an example.
Have fun!
You can change the run action by right clicking on the icon and select 'Set Run Action ...', if the option is available for that particular type of file. If you want to change the run action for a .txt file, you can enter 'beaver' in place of 'leafpad'. Thereafter, your text files will open with Beaver when you click on them with Rox.
Suppose I would like to open a .html file with Firefox, I simply set the run action to 'firefox'. Easy enough. But sometimes I want to open a .html file with Mozilla Composer. In other words, I would like options to open files with different applications, to suit my needs. It is pretty easy to do using Rox's SendTo.
In this example, I will show you how to open a .html file for editing in Mozilla.
Make the following shell script:
------------
#!/bin/sh
mozilla -edit "$@"
-------------
Name the file something like: mozilla-composer
Right click permissions and make the file executable
Move the file to /root/Choices/SendTo
That's it.
Now if you want to open a .html file for editing instead of viewing, you can right click on it, and send it to mozilla-composer in Rox's SendTo
Of course you can to this will all types of files and programs. I just used the .html as an example.
Have fun!