Created
November 30, 2023 08:05
-
-
Save thenktor/3f74d09a893ec02f8724a4c943f1d002 to your computer and use it in GitHub Desktop.
Open Finder file info dialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show Finder's info dialog from command line, add this e.g. to .zshrc | |
finfo() { | |
osascript - "$@" <<-ENDOSASCRIPT > /dev/null 2>&1 | |
on run args | |
tell app "Finder" | |
activate | |
repeat with f in args | |
open information window of (posix file (contents of f) as alias) | |
end | |
end | |
end | |
ENDOSASCRIPT | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment