^ it works with any device or directory or whatever. ok wait i'll look it up.
...
# Executing external commands (1 - 10) invoked with key commands (F1 - F10 by
# default).
# Some arguments are substituted befor executing:
# %f - file path
# %i - title made from tags
#
# Data from tags:
# %t - title
# %a - album
# %r - artist
# %n - track
# %m - time of the file (in seconds)
#
# Parameters above applys to the currently selected file. If you change them to
# capital letters, they are taken from the currently played file.
#
# Programms are run using execv(), not a shell, so you can't do things like
# redirecting the output to a file. The command string is split using blank
# characters as separators, the first element is the command to be executed
# and the rest are parameters, so if you use "echo Playing: %i" we run program
# echo (from $PATH) with 2 parameters: 'Playing:' string and the title. Even
# if the title contains spaces it's still one parameter and it's safe if it
# contains `rm -rf /`.
#
# Examples:
# ExecCommand1 = "cp %f /mnt/usb_drive"
# ExecCommand2 = "/home/joe/now_playing %i"
that explains everything. personally i have it like this:
ExecCommand1 = "cp %f /media/ipod"
ExecCommand2 = "cp %F /media/ipod"
the 1st command, invoked with F1, copies the currently selected file to /media/ipod. the 2nd command, invoked with F2, copies the currently playing file to /media/ipod.
i'm reposting this in the Moc themes/scripts as well, because that is where it really belongs.