How to trigger "Get Info" for file using command line? Similarly to running open &quot;/Applications/Firefox.app&quot;, I would like to open the &quot;Get Info&quot; window of /Applications/Firefox.app using command line.
I don't think you can do this with a shell command, but you can use a shell script to run AppleScript, which can do it. See here:
https://stackoverflow.com/questions/24421803/open-info-window-in-finder-by-applescript
https://stackoverflow.com/questions/37231942/open-get-information-window-in-finder-by-applescript-again
For example:
osascript -e &quot;set aFile to (POSIX file \&quot;/Applications/Firefox.app\&quot;) as text&quot; \
          -e &quot;tell application \&quot;Finder\&quot; to open information window of file aFile&quot;

If you want to add in your bash or zsh profile:
getfileinfo() {
  local FILE=&quot;$1&quot;

  if [[ -r &quot;${FILE}&quot; ]]; then
    osascript &lt;&lt;EOF
set aFile to (POSIX file &quot;$FILE&quot;) as alias
tell application &quot;Finder&quot; to open information window of aFile
EOF
  fi
}