iPhone;561955 Wrote:
> Question: Could your script be turned into a Plugin? Or posted on the
> Wiki?
>
Eh, I don't think it's all that great a script. The important thing
for everybody else to know is how to have scripts run automatically for
a specific drive when you have more than one drive. This assumes a
Gnome desktop. The trick is that when you set a script to run
automatically when a disc is inserted, gnome-vfs passes the mount point
to the script. The bit below runs abcde when a disc is inserted. You
can set this as the script to run by opening your home folder and going
to Edit->Preferences->Media. Just remember to set abcde up so it runs
non-interactively (or run it in a terminal window, but I hate windows
popping up and bugging me).
Code:
--------------------
#!/bin/sh
BASE=$(echo "$@" | awk '{print $NF}')
DEVICE=/dev/$BASE
abcde -d$DEVICE
--------------------
--
Daverz
------------------------------------------------------------------------
Daverz's Profile: http://forums.slimdevices.com/member.php?userid=32335
View this thread: http://forums.slimdevices.com/showthread.php?t=80452
_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/ripping