Menu

how to launch from the command line on a mac

Help
Alex
2004-09-24
2018-06-14
  • Alex

    Alex - 2004-09-24

    I'm running tkdiff on osx 10.3

    I can start it from the command line with

    open /Applications/tkdiff.app

    but can't provide command line arguments even with

    open -a /Applications/tkdiff.app ~/one ~/two

     
  • Anonymous

    Anonymous - 2010-05-13

    6 years on, and I'm wondering the same thing. Please could someone state the answer.

     
  • michael-m

    michael-m - 2018-06-08

    I'm not a MacOS user, but I ran across the following note that may be useful:


    ..... Note that if you run the application by double-clicking on it, it prompts you for filenames and revisions. If you'd rather run it from the command line (the more traditional "Unixy" way), you'll find that you can't pass filenames/revisions unless you do the following:

       alias tkdiff "/Applications/TkDiff.app/Contents/MacOS/Wish\ Shell"
    

    This is for the csh/tcsh users, obviously. sh/bash/ksh users substitute, as appropriate. Note that the slash is required, even in the presence of the quotes, because the escaping has to occur when the alias is used (i.e. expanded).

    At any rate, once you've created this shell alias, you can do:

     tkdiff  FILE1  FILE2
    

    and things should work nicely.

    John Klassa


    I can't answer if this applies to "Mac classic" or the "X 10", but if it helps, you're welcome.

     
  • DorothyR

    DorothyR - 2018-06-08

    Oops, I forgot to tell 'em that :-)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.