1

Related topic: How to get an application executable path from Terminal

With macOS native apps, I can launch them directly form Terminal, for example.

garmin@M2 ~ % /Applications/CotEditor.app/Contents/MacOS/CotEditor

However this doesn't seem to work with with apps not available natively for macOS, but for iOS or iPadOS, let's say eBay:

eBay for iPad running on macOS with Apple silicon

It does not launch:

garmin@M2 ~ % /Applications/eBay.app/Wrapper/eBay.app/eBay
zsh: killed     /Applications/eBay.app/Wrapper/eBay.app/eBay

Any idea if this is even possible to do? How can I launch it from shell or bash?

0

1 Answer 1

1

You can start applications from a shell by running

open -a APPLICATION.app
3
  • Right, it works, but why doesn't work launching the ex like it does with CotEditor? This is what I want to know also.
    – Smeterlink
    Dec 24, 2022 at 11:22
  • 1
    @Smeterlink The eBay binary which finally gets executed is in /private/var/folders/8b/... (run ps aux | grep -i ebay to check on your system), so I assume that some preparation steps are required which the shell isn't aware of (the shell simply runs exec() on the binary).
    – nohillside
    Dec 24, 2022 at 13:11
  • that must be it, because running such binary directly from the location /private/var/folders/x9/.../X/.../d/Wrapper/eBay.app/eBay just quits with Killed: 9.
    – Smeterlink
    Dec 24, 2022 at 14:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .