LoginSignup
45
50

More than 5 years have passed since last update.

Mac でコマンドラインからアプリケーション起動

Last updated at Posted at 2012-04-09

open -a [アプリケーション名] でよい。
アプリケーション名は /Application 下の .app の拡張子を除いたもの。

# Kobito 起動
open -a Kobito

# .profile を TextEdit で開く
open -a TextEdit ~/.profile

# サブディレクトリにあるものもアプリケーション名だけで OK。
open -a Microsoft\ Excel

よく使うものは alias を作っておくと楽。

# ~/.profile
alias kobito="open -a Kobito"

.app をフルパスで渡してもよい (/Application 下にない場合など)。

# 下記のどちらでも OK
open /Applications/Kobito.app
open -a /Applications/Kobito.app
45
50
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
45
50