Enqueue in Audacious
Nautilus Scripts
Score 57%
Description:

Lately I switched from XMMS to Audacious. I already had a script for XMMS to Enqueue Audio-Files in XMMS out of Nautilus. So I adapted this one to Audacious.

Just unpack the file into ~/.gnome2/nautilus-scripts

Have Fun with it!!! ;-)

Greetz
Last changelog:

9 years ago

fix: new version after some problems with enqueuing more than one file at once. Thanx to "qbit"

camshron

7 years ago

#! /bin/sh
# A small script to enqueue media files in audacious recursively
# Written by Thura
# Modified by Phillip Cameron

is_player_present=$(ps -e | grep audacious)

walk()
{
for file in "$1"/*
do
if [ -d "$file" ];then
walk "$file"
else
if [ -n "$is_player_present" ];then
audacious --enqueue "$file"
else
audacious "$file"
fi
fi
done
}

if [ -d "$arg" ];then
walk "$arg"
else
if [ -n "$is_player_present" ];then
audacious --enqueue "$@"
else
audacious "$@"
fi
fi

Report

joshtt

9 years ago

Nice job!

But is there a way to enqueue files in an already open window of audacious?
When I enqueue, it starts a second instance of audacious.

Thanks!

Josh

Report

joshtt

9 years ago

Ok, sorry .... this only happens when run as root.

J.

Report

qbit

9 years ago

I tried to enqueue more than one file and it failed, so I had to change the script for this one:

FILES="${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS}"

echo "${FILES}" | while read FILE; do
if [ -n "${FILE}" ]; then
audacious --enqueue "${FILE}"
fi;
done

Report

skvitek

9 years ago

Hm... When I tried - I can enqueue more than one file - I am probably doing something wrong? =)

To all: you can add "audacious -p" without quotes to end of this script to enqueue
and listen your files.

Report

C

SteffenS81

9 years ago

Hmmm, I do not have any problems with enqueuing more than one track at the same time. Just checked this and it seems to run fine with the original script.

Report

C

SteffenS81

9 years ago

OK, checked it again and you were right. There actually was a problem with the script.
When more than one file was selected then the second would be shown in the Playlist but you can't start it. With you're alterations the script works great. So thanks for that.
I'll upload the new version.

Greetz

Report

9 years ago

fix: new version after some problems with enqueuing more than one file at once. Thanx to "qbit"

product-maker I4C Feb 19 2013

product-maker 11 18

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.0
updated Jul 01 2008
added May 07 2008
downloads today
0
page views today 3