Briefly: I would like to open an application for the first time from the command line, and have it act like it was opened in the Finder for the first time.
In more detail:
If you download an application from the internet and open it for the first time from the Finder, you get a dialog box asking:
“MacGuffin.app” is an app downloaded from the Internet. Are you sure you want to open it?
However, if you open the application for the first time from the CLI, it does not give you that dialog -- it just opens the application. This seems to be consistent across a few different ways that I've tried to open the application:
open -a MacGuffin
osascript -e "tell application \"MacGuffin\" to activate"
osascript -e "launch application \"MacGuffin\""
In each case, it just opens the app without verifying. Then, later, if you open the application from the Finder, it goes through the whole verifying step.
What I want to do is to trigger that first-open-and-verify behavior from the command line, so that it does not later re-verify it when it is opened in the Finder.
I'm especially flustered since the
man page for
open describes its action as "The open command opens a file (or a directory or URL), just as if you had double-clicked the file's icon." Clearly, it does not.