The time now is Sat 25 May 2013, 07:21
All times are UTC - 4 |
| Author |
Message |
Bruce B

Joined: 18 May 2005 Posts: 10818 Location: The Peoples Republic of California
|
Posted: Mon 13 Jun 2005, 20:19 Post subject:
How to make multiple run actions with Rox's SendTo |
|
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!
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Mon 13 Jun 2005, 23:28 Post subject:
Associate program and file |
|
Have added the data here
http://www.goosee.com/puppy/wikka/AssociatePrograms
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Ian
Official Dog Handler

Joined: 04 May 2005 Posts: 1237 Location: Queensland
|
Posted: Tue 14 Jun 2005, 20:24 Post subject:
|
|
I've tried this in 1.0.2 and can't get it to work Bruce.
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10818 Location: The Peoples Republic of California
|
Posted: Wed 15 Jun 2005, 08:02 Post subject:
|
|
Ian, in retrospect I think Mozilla was not the best example to use for showing how to open apps with SendTo.
I had replaced Puppy's Mozilla along with the symlinks.
The default mozilla link is mozilla -> mozstart and that is probably what is stopping it from running.
If you want to try linking to Mozilla directly here is the command to make a new link
ln -sf /usr/lib/mozilla-1.8b1.3/mozilla /usr/local/bin/mozilla
To put it back as it was:
cd /usr/local/bin
ln -sf mozilla mozstart
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
[ Time: 0.0445s ][ Queries: 11 (0.0090s) ][ GZIP on ] |