View Full Version : Using Terminal
Dave@UW
Jun 4, 2004, 08:15 PM
I'm assuming it's possible to use terminal to open files, for example, to play a song in iTunes by using a terminal command. Can anyone tell me how to do this, I've searched but with no success.
Thanks.
titaniumducky
Jun 4, 2004, 09:37 PM
I'm assuming it's possible to use terminal to open files, for example, to play a song in iTunes by using a terminal command. Can anyone tell me how to do this, I've searched but with no success.
Thanks.
CD into the directory. Use the "open" command. Read the man, if you want details on it.
Basically, use "open -a" to specify an application to open your file with.
HexMonkey
Jun 4, 2004, 09:38 PM
You can use the open command for this. For example:
open ~/Music/Song.mp3
You can specify an application other than the default by using the -a flag, eg:
open -a iTunes ~/Music/Song.mp3
or
open -a /Applications/iTunes.app ~/Music/Song.mp3
Edit: Whoops, titaniumducky beat me to it by a minute.
abhishekit
Jun 4, 2004, 09:39 PM
open /path/of/your/song
or
open *drag your song here from the finder*
cheers
stcanard
Jun 5, 2004, 04:44 PM
open *drag your song here from the finder*
Now that is too cool. I had no idea.
Funny, I swear OSX has the best integrated command line of any OS I have ever used.
You just made may day :D
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.