No More Than Nothing

Call MPlayerX Thru Script

| Comments

MPlayerX supports Shell script command line and AppleScript as its integration to the OS.

  • For Shell script

Usage:

In Terminal.app, the command looks like
1
open -a /path/to/MPlayerX.app --args -name1 value1 -name2 value2 ...

Besides the names in the table below, the strings declared in this file could also be used as name.

name value
url the url of the media
file the path of the media file
A real world example
1
open -a /Applications/MPlayerX.app --args -file /Movies/myfavorite.mp4 -volume 50 -StartByFullScreen YES
  • For AppleScript

MPlayerX just started to support AppleScript in 1.0.17, its implementation still stays in primary status.

Usually you could use AppleScript Editor to look up all the functions provided by MPlayerX, for geeks, the source code is here.

Comments