1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Mac】openコマンドの使い方

Posted at

openコマンドを使用するとファイル、ディレクトリ、アプリケーションを開くことができます。

デフォルトのアプリケーションでファイルを開く

open file.txt

カレントディレクトリの特定の拡張子のファイルを全てデフォルトのアプリケーションで開く

open *.txt

特定のアプリケーションを開く

open -a "Safari"

特定のアプリケーションでファイルを開く

open -a "Safari" image.gif

バンドル識別子に基づいてアプリケーションを開く

open -b com.domain.application

アプリケーションの新しいインスタンスを開く

open -n -b com.domain.application

Finderでディレクトリを開く

open path/to/dir

Finderでファイルを開く

open -R path/to/file
1
1
0

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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?