Finder Toolbar app to open MediaInfo of selected video in Terminal.
See steps below.
Install MediaInfo CLI.
Make sure you download the CLI (=Command Line Interface).
- Start Automator.
- Create New docoment with cmd+n (or from the menu bar: File -> New).
- Choose Application as type for your document.
- Search "Run Applescript" in left pane.
- Drag the "Run Applescript" in right pane.
- Replace the default script with:
tell application "Finder" to set theItems to selection
repeat with itemRef in theItems
set myitem to "'" & POSIX path of (itemRef as string) & "'"
end repeat -- it will store the last filename in selection
tell application "Terminal"
launch
activate
do script
set size of window 1 to {980, 800}
do script "mediainfo " & myitem in window 1
end tell
- Save it as 'OpenWithMediaInfo.app' in your Applications folder.
- Copy (cmd+c) "OpenWithMediaInfo-icon.png".
- Select the OpenWithMediaInfo.app in your Applications folder and press cmd+i to open the app info window.
- Click the small icon in the top.
- Paste with cmd+v.
- Open two Finder windows.
- Right click toolbar -> Customise Toolbar (your toolbar items will start shaking).
- Use the other window to navigate to your Applications folder.
- Drag the MediaInfoScript.app to the Toolbar.