Using Terminal

Discussion in 'Mac Apps and Mac App Store' started by Dave@UW, Jun 4, 2004.

  1. Dave@UW macrumors newbie

    Joined:
    Jun 3, 2004
    Location:
    Seattle
    #1
    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.
     
  2. titaniumducky macrumors 6502a

    titaniumducky

    Joined:
    Nov 22, 2003
    #2
    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.
     
  3. HexMonkey Administrator

    HexMonkey

    Staff Member

    Joined:
    Feb 5, 2004
    Location:
    New Zealand
    #3
    You can use the open command for this. For example:

    Code:
    open ~/Music/Song.mp3
    You can specify an application other than the default by using the -a flag, eg:

    Code:
    open -a iTunes ~/Music/Song.mp3
    or
    Code:
    open -a /Applications/iTunes.app ~/Music/Song.mp3
    Edit: Whoops, titaniumducky beat me to it by a minute.
     
  4. abhishekit macrumors 65816

    abhishekit

    Joined:
    Nov 6, 2003
    Location:
    akron , ohio
    #4
    open /path/of/your/song
    or
    open *drag your song here from the finder*

    cheers
     
  5. stcanard macrumors 65816

    stcanard

    Joined:
    Oct 19, 2003
    Location:
    Vancouver
    #5
    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
     

Share This Page