It's most likely due to the VLC RC client wanting an Xterm interactive shell instead of a non-interactive shell, or some weirdness with the VLC OS X app still attempting to launch (It's bouncing in my dock while it runs).
In any case, a simple work around is to have automator launch a script to run in terminal.
The script would be simply:
#/bin/bash
/Applications/VLC.app/Contents/MacOS/VLC -I rc http://open.live.bbc.co.uk/mediaselector/5/select/mediaset/http-icy-mp3-a/vpid/bbc_radio_fourfm/format/pls.pls --sout '#standard{mux=raw,access=file{overwrite},dst=/Users/person/Documents/scripts/r4.mp3,display=novideo}' --run-time=1800 --stop-time=1800
It should have execute permissions (chmod +x)
Then from Automator, you launch it like you normally would. In this case, I had Automator "Run Shell Script" of
open -a Terminal /path/to/script.sh
Note you may want to add the --play-and-exit
option, otherwise VLC will stay open even after the 1800 seconds. By default, it will stop at the end of the playlist and wait. --play-and-exit
will tell it to quit when the playlist ends (in this case a single file).
Alternatively, you can directly launch the script with a double click, skipping Automator completely, if you change the suffix to .command. That may be more direct, depending on your actual goal.
Either of these should work:
alias sublime='open -a "Sublime Text 2"'
alias sublime='open -a Sublime\ Text\ 2'
Best Answer
Always use a different name for your alias. For example (one of mine):
Or, in your case:
and so on.
You may use more complex aliases, or even personal functions used inside aliases, for example when you need to pass a parameter inside the command, not at the end (as to provide a changing IP address to your alias), but it is probably a bit too much depending on your question.
Anyway, this is one of mine, again:
Then I use dont_alias as an alias, for example:
The only difference with aliases is that functions do not appear in the list of (existing) aliases.
I have a few more complex samples (that I use daily), if some people are interested. Please feel free to ask for — I do my best to come here every few days :^)