I cant execute apps from the terminal draggin them

Discussion in 'Mac Apps and Mac App Store' started by tirengarfio, Oct 16, 2006.

  1. tirengarfio macrumors newbie

    Joined:
    Oct 14, 2005
    #1
    Hi to all,

    when i drag an icon of an applicationto the terminal to execute it from the terminal it just says whatever.app: is a directory.its for sure im draggin applications.


    what happens?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Why do you think this will start the application? A .app "file" is really a folder containing the application code and all it's resources. When you drag a folder to the Terminal it put's that folders path in the topmost terminal window. This is the expected behaviour.
     
  3. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #3
    To make this work in terminal, you need to use the open command. So, type open -a (followed by a space) and drag in your application bundle, so you have something like open -a /Applications/Stickies.app/
     

Share This Page