Giter VIP home page Giter VIP logo

mediainfo-finder's Introduction

MEDIAINFO-FINDER

Finder Toolbar app to open MediaInfo of selected video in Terminal.

See steps below.

PREREQUISITES

Install MediaInfo CLI.

Make sure you download the CLI (=Command Line Interface).

MediaInfoInstallCLI

CREATE AUTOMATOR SCRIPT

  1. Start Automator.
  2. Create New docoment with cmd+n (or from the menu bar: File -> New).
  3. Choose Application as type for your document.
  4. Search "Run Applescript" in left pane.
  5. Drag the "Run Applescript" in right pane.
  6. 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
  1. Save it as 'OpenWithMediaInfo.app' in your Applications folder.

Automator

ADD OPENWITHMEDIAINFO ICON TO THE APP

  1. Copy (cmd+c) "OpenWithMediaInfo-icon.png".
  2. Select the OpenWithMediaInfo.app in your Applications folder and press cmd+i to open the app info window.
  3. Click the small icon in the top.
  4. Paste with cmd+v.

AddIcon

ADD OPENWITHMEDIAINFO APP TO YOUR FINDER TOOLBAR

  1. Open two Finder windows.
  2. Right click toolbar -> Customise Toolbar (your toolbar items will start shaking).
  3. Use the other window to navigate to your Applications folder.
  4. Drag the MediaInfoScript.app to the Toolbar.

AddToToolbar

mediainfo-finder's People

Contributors

radicalroot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.