Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ROX-Filer: Run multiple files? [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kest
n00b
n00b


Joined: 29 May 2006
Posts: 18
Location: Unknown

PostPosted: Mon Jun 05, 2006 4:38 pm    Post subject: ROX-Filer: Run multiple files? [solved] Reply with quote

Hello.

I've been using rox-filer for a while but never tried to run several files at once, but now that I have I don't know how to do it. For example, I have
Code:
xmms -e "$@"
as my run action for all audio files. When I select more mp3s than one, I don't know what to do to enqueue them all with the run action I've specified; I've tried pushing space or enter, left-clicking one of the selected files (only enqueues the file I click), browsing the right-click menu for options (has copying, renaming, deleting, moving, and even counting, but nothing to run them) and looking for a toolbar button to run the selected files, to no avail. I even tried adding a "customize menu" script for mp3s to run xmms -e, but it only appears in the menu for single files, not for multiple files. I found nothing regarding this in the ROX-Filer Manual.

Now, enqueueing mp3s can easily (perhaps even more easily) be done just by clicking around on single files, but if I want to view videos sequentially in mplayer, I'd really need the $@ to be replaced with the names of all the files I've selected, since mplayer's -enqueue option doesn't work for me, probably because I don't use the GUI; just giving it many files as arguments works fine. The same applies to GIMP, though I could probably use gimp-remote for that. But this isn't about individual programs, except maybe rox-filer. :wink:

I know I can do all this in a terminal, and can even use wildcards when doing so. And I like terminals. I was just wondering if it's possible to do it in rox, as the default "$@" for run actions would suggest that it's possible to run several files. Thank you.


Last edited by kest on Tue Jun 06, 2006 1:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
grad_guy
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2004
Posts: 109
Location: UCSD, La Jolla, CA

PostPosted: Tue Jun 06, 2006 6:02 am    Post subject: Reply with quote

Rox - SendTo menu is your friend. You can go to ~/Choices/SendTo/ and create any executable script files as you wish.
I have created three scripts that do jobs as you mentioned, XMMS_Playlist, Mplayer_Playlist, and Open_in_Gimp.
You can also take the rest as ideas to make this Rox - SendTo menu even greater.
Code:

nui@straivir-res ~/Choices/SendTo $ head *
==> Convert_to_wallpaper <==
#! /bin/sh
convert -sample 2560x1024 "$@" "$@"

==> gVim <==
#! /bin/sh
exec gvim "$@"

==> Mplayer_Playlist <==
mplayer "$@"

==> Open_in_Gimp <==
gimp "$@"

==> Rotate90ccw <==
#!/bin/bash
for file in "$@"
do
convert -rotate -90 $file $file
done

==> Rotate90cw <==
#!/bin/bash
for file in "$@"
do
convert -rotate 90 $file $file
done

==> Set_as_wallpaper_feh_scaled <==
exec feh --bg-scale "$@"

==> Set_as_wallpaper_feh_tiled <==
exec feh --bg-tile "$@"

==> SlideView <==
feh -g 1280x1024 "$@"

==> XMMS_Playlist <==
xmms "$@"
Back to top
View user's profile Send private message
kest
n00b
n00b


Joined: 29 May 2006
Posts: 18
Location: Unknown

PostPosted: Tue Jun 06, 2006 1:05 pm    Post subject: Reply with quote

Thanks, grad_guy, that's exactly what I was looking for! A neat example btw. I suppose I was thinking of "SendTo" in terms of Windows explorer, ie. moving files around, and didn't pay much attention to it. I'll try to be more open-minded from now on. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
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