Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Oct 2014, 10:32
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to make multiple run actions with Rox's SendTo
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Bruce B


Joined: 18 May 2005
Posts: 11130
Location: The Peoples Republic of California

PostPosted: 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
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 13 Jun 2005, 23:28    Post subject: Associate program and file  

Have added the data here

http://www.goosee.com/puppy/wikka/AssociatePrograms

Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: 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
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11130
Location: The Peoples Republic of California

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

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.0438s ][ Queries: 12 (0.0032s) ][ GZIP on ]