mattintosh note

どこかのエンジニアモドキの備忘録

QuickTime Player を複数起動する方法

QuickTime Player.app

QuickTime Player.app は同じファイルを複数のプレイヤーで起動できないが、open コマンドの -n オプションを使うことで複数起動できる。-a オプションでアプリケーションの指定がなければデフォルトのアプリケーションで起動する。

open -na "/Applications/QuickTime Player.app" movie.mp4

頻繁に使うのであれば Automator でサービスなどを作ってショートカットキーを割り当てておくのもいいかもしれない。空いているキーに割り当てれば押しただけアプリケーションが起動できる。-g オプションを追加しておけば新しいアプリケーションはフォアグラウンドにならない。

# template: services
# source: file or directory
# mode: stdin

while read f
do
    open -gn "$f"
done