Firefox ターミナル操作をアップデートしたので Thunderbird のほうも同様にアップデートする。コマンドラインオプションについての詳細な情報は MDC の Command Line Options を参照して欲しい。
基本コマンドと操作
基本コマンドは以下の2つ。Thunderbird がデフォルトディレクトリの Applications (アプリケーション) にインストールされていることが前提。異なるディレクトリやフォルダを介している場合はアプリケーションまでのパスを書き換えること。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin
コマンドライン設定オプションは Terminal.app を起動し、ウィンドウ内の $ の後にコマンドを入力する。Terminal ではスペースや大文字小文字の区別が厳格に適応されるので注意すること。
Thunderbird の情報を取得する
利用できるコマンドラインを表示する
Thunderbird が利用できる オプションコマンドラインを調べる。「***」には h または help または ? の何れかを入力する。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -***
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -***
Thunderbird のバージョンを表示する
Thunderbird のバージョンを Terminal に表示する。-v または -version のどちらでも可能。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -v
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -v
起動
セーフモード起動
Firefox 3 以降はアプリケーションアイコンを option を押しながらクリックすることでセーフモード起動が可能となっているが、これを書いている時点での Thunderbird 3 Beta 3 でも利用できない。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -safe-mode
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -safe-mode
- NOTE:
- Thunderbird を終了していること。起動状態で使用するとアラートが表示されコマンドは実行できない。
プロファイルマネージャ起動
Thunderbird のプロファイルマネージャを起動する。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -ProfileManager
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -ProfileManager
- NOTE:
- ProfileManager は p としても実行可能。
- Thunderbird を終了していること。起動状態で使用するとアラートが表示されコマンドは実行できない。
プロファイルを指定して起動する
複数のプロファイルを保存していて、その中から指定したプロファイルで起動したい場合に使用する。-p に続けてスペースを入力、「***」にはプロファイル名を入力する。例えばプロファイルフォルダ名称が j92w8af5v.default の場合は ドット以下の default がプロファイル名。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -p ***
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -p ***
- NOTE:
- プロファイル名は大文字・小文字を区別するので注意すること。
- プロファイル名に「スペース」が含まれる場合は、スペースの前にバックスラッシュ「\」を入れてエスケープする必要がある。
- 起動中のプロファイルを指定してしまった場合は「複数の…を起動することはできません」とアラートが表示される。
異なるプロファイルを指定して同バージョンの Thunderbird を複数起動する
解説には同一バージョンの Thunderbird を異なるプロファイルを使用して同時起動する場合に使用するとある。だが、一つ上の「プロファイルを指定して起動する」との差が分り難い。
このコマンドは -no-remote -p プロファイル名というように記述しする。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -no-remote -p プロファイル名
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -no-remote -p プロファイル名
デフォルト以外のディレクトリに置いたプロファイルで起動する
デフォルトのプロファイルディレクトリ (Users Home/Library/Thunderbird/Profiles/) 以外に置いたプロファイルを指定して Thunderbird を起動する。
この場合はプロファイル名ではなくプロファイルのパスを記述しなければならない点が上記のものとは異なる。また -p ではなく -Profile または -profile と記述しなければ実行できない。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -Profile プロファイルの絶対パス
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -Profile プロファイルの絶対パス
例えば、HDD2 という名前の外部 HDD に置いた a0a0a0a0a0.ExternalProf というプロファイルを指定する際の記述はこうなる:
- e.g.
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -Profile /Volumes/HDD2/a0a0a0a0a0.ExternalProf
or
cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -Profile /Volumes/HDD2/a0a0a0a0a0.ExternalProf
起動時の動作
起動時に JS エラーコンソールを開く
Thunderbird が何かの理由でフリーズや異常終了してしまった場合、エラーコンソールから起動することで何が問題なのか知ることができる場合もある。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -jsconsole
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -jsconsole
- NOTE:
- Thunderbird を終了していること。起動状態で使用するとアラートが表示されコマンドは実行できない。
起動時に Thunderbird の設定移行アシスタントを開く
Thunderbird 2 は利用可能、Thunderbird 3 Beta3 では不可。
設定移行アシスタントで起動して、他メールクライアントから設定、アカウント設定、アドレス帳などのデータを読み込む。読み込みを続けた場合、それまで使用していた Thunderbird の設定は上書きされることに注意すること。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -migration
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -migration
起動時に Thunderbird の環境設定を開く
Thunderbird の環境設定パネルを起動時に開く。環境設定に関係する問題が起きている場合は有益かも。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -options
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -options
起動時に Thunderbird のアドレス帳を開く
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -addressbook
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -addressbook
Thunderbird をオフラインで起動する
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -offline
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -offline
新規メール作成ウィンドウで Thunderbird を起動する
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -compose
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -compose
-compose の後にスペースを入力して“メールアドレス”と記述することで宛先を指定したメッセージ作成ウィンドウを開くこともできる。例:
- e.g.
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -compose "test@yattemomail.com"
or
cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -compose "test@yattemomail.com"
その他のコマンド
ここで取り上げたコマンドは実際にテストしてみたもののみ、一般的に利用しないだろうと思われるものは省いた。MDC の Command Line Options にはこの他にも利用可能なコマンドがあるので、それらは実際にテストして欲しい。
以下は応用として、複数の Thunderbird とプロファイルが存在し、任意の処理を行いたいという場合のコマンドを組み合わせて使用する方法を書いてみる。
指定した Thunderbird とプロファイルでセーフモード起動
- Full Path
- /Thunderbird.app へのパス/Contents/MacOS/thunderbird-bin -p プロファイル名 -safe-mode
- Current Directory
- cd /Thunderbird.app へのパス/Contents/MacOS/; ./thunderbird-bin -p プロファイル名 -safe-mode
指定した Thunderbird と外部 HDD に置いたプロファイルでセーフモード起動する
デフォルト以外のディレクトリに置いたプロファイルで起動するの応用版。thunderbird-bin へのパスの後に-Profile[スペース]外部HDDに置いたプロファイルへの絶対パスでプロファイルを指定し、-safe-mode でセーフモードを続ける。
- Full Path
- /Thunderbird.app へのパス/Contents/MacOS/thunderbird-bin -Profile 外部HDDに置いたプロファイルへの絶対パス -safe-mode
- Current Directory
- cd /Thunderbird.app へのパス/Contents/MacOS/; ./thunderbird-bin -Profile 外部HDDに置いたプロファイルへの絶対パス -safe-mode