Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 942497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:16:56+00:00 2026-05-15T22:16:56+00:00

I’ve thought that mate is virtually the same as ‘open -a TextMate.app’, but I

  • 0

I’ve thought that mate is virtually the same as ‘open -a TextMate.app’, but I guess I’m wrong in this.

As when I run the following command, when there’s no hello2.txt, I get this error.

open -a TextMate.app hello2.txt
The file /Users/smcho/hello2.txt does not exist.

But, it’s OK to run mate.

mate hello.txt --> opens the text mate. 

What’s the difference between the two?

I even tried

open -a TextMate.app --args hello2.txt

But this time, TextMate run with the file name ‘Untitled’, not ‘hello2.txt’.

And this code opens the ‘hello3.txt’ without any problem.

[NSTask launchedTaskWithLaunchPath:@"/Applications/TextMate.app/Contents/MacOS/TextMate"     arguments:[NSArray arrayWithObjects:@"hello3.txt", nil]];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:16:57+00:00Added an answer on May 15, 2026 at 10:16 pm

    open will open the given file with the default or a specific application.

    open -a TextMate.app hello2.txt
    

    means “Open the file hello2.txt using the application TextMate.app”.
    If there is no hello2.txt, there’s nothing open could open, with or without TextMate.app, hence the error.

    open -a TextMate.app --args hello2.txt
    

    means “open nothing specific in the application TextMate.app (i.e. only open TextMate.app) and pass ‘hello2.txt’ as additional argument”. This is a different kind of argument than the first example. TextMate.app can decide what to do with that additional argument. Apparently it chooses to ignore it.

    mate is a utility optionally installed by TextMate.

    mate hello.txt
    

    means “I’d like to edit a file called hello.txt in TextMate”, which is exactly what TextMate will let you do. It’s a different utility with different behavior and different purpose, and it seems to better suite what you want it to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.