Results 1 to 3 of 3
  1. #1
    Launching apps from terminal (like linux?)

    Member Since
    Dec 09, 2008
    Posts
    19
    Launching apps from terminal (like linux?)
    One of the things I miss in OS X compared to linux (ubuntu) is the ability to easily launch applications from the terminal, with or with out parameters to open files in that application.

    Eg if i wanted to edit a document on linux I would type
    Code:
    gedit ~/files/example.txt
    In OS X I dont seem to be able to do this, is there a way?
    I know I can add an alias entry for each program to just run it like below:
    Code:
    alias tx 'open /Applications/TextEdit.app/'
    but what happens if i want to open a file with this application as I know the command is different (using the -a option).

    Is there any way to get OS X to work like linux in this way?

    thanks.

  2. #2
    Launching apps from terminal (like linux?)
    MacsWork's Avatar
    Member Since
    May 22, 2005
    Location
    Closer than you think.
    Posts
    2,159
    Specs:
    Performa 6116 2GBSCSI 8MB OS 7.5.3
    open /Applications/TextEdit.app ~/File.txt

    Assuming there is File.txt in the root of your home directory

  3. #3
    Launching apps from terminal (like linux?)

    Member Since
    Mar 30, 2004
    Location
    USA
    Posts
    4,744
    Specs:
    12" Apple PowerBook G4 (1.5GHz)
    Quote Originally Posted by MacsWork View Post
    open /Applications/TextEdit.app ~/File.txt
    or just

    Code:
    open ~/File.txt
    (to open it with whatever the default application is for that file)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Issue Launching Molden through Terminal using XQuartz
    By grace.win in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 12-04-2014, 09:03 AM
  2. Apps Launching at Start up
    By mjkuryak in forum OS X - Operating System
    Replies: 2
    Last Post: 08-04-2012, 04:10 PM
  3. launching UNIX apps from MAC via SSH
    By mspadaccino in forum OS X - Operating System
    Replies: 2
    Last Post: 08-30-2011, 09:18 AM
  4. Error message when launching Office apps
    By josh1980 in forum OS X - Operating System
    Replies: 5
    Last Post: 05-11-2007, 01:11 AM
  5. Running Linux apps on my Mac or Linux itself
    By Nightblade in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 05-24-2004, 01:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •