Skip to content

Instantly share code, notes, and snippets.

@thenktor
Created November 30, 2023 08:05
Show Gist options
  • Save thenktor/3f74d09a893ec02f8724a4c943f1d002 to your computer and use it in GitHub Desktop.
Save thenktor/3f74d09a893ec02f8724a4c943f1d002 to your computer and use it in GitHub Desktop.
Open Finder file info dialog
# 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