Terminal.app から実行できる Thunderbird のコマンド
Last update: 2008-02-06
- 追記: 2009-09-10
- この内容は古いものです。Thunderbird 2 とそれ以降のバージョン、及び Mac OS 10.5.8 以降に対応した内容は Mac OS 10.6 での Thunderbird の Command Line Options に更新しています。
以前ネタにしたターミナルによる Firefox と Thunderbird の操作の覚書の続編です。時間の関係から、前回は Thunderbird での検証を多くできなかったので、今回は Thunderbird に限ったターミナルコマンドによる操作を取り上げる。
これらは正しく使用すれば問題は起こらないが、試してみる時は、これから行う操作が何を意味しているのかを理解してから行うように。
なお Terminal は記述が間違っていたら実行されないので心配は無用です。
Terminal ではスペースや大文字小文字のの区別が厳格に適応されるので注意すること。
表中の Command Line に「***」がある場合は、注意書きに従って正確に入力してください。
コマンド完了後の Tarminal には、点滅するプロンプトの後に「exit」と入力して return キーを押し、コマンドを完了するように(Terminal を使う時のルールとして覚えてください)
基本コマンド
基本コマンドは次の二つで、どちらの方法でも実行可能。
- CAUTION:
- 以下のコマンドは Thunderbird が Applications (アプリケーション) にインストールされていることが前提。もし異なるディレクトリやフォルダを介している場合は、パスの部分を書き換えること。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin
1. 利用できるコマンドラインを表示する
Thunderbird で利用できる Terminal コマンドラインを調べます。コマンドラインに興味があれば一度は見ておくように。
「***」には「h」または「help」または「?」を入力する。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -***
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -***
2. セーフモード起動
最も良く使うコマンド。Mac OS X 版 Thunderbird をセーフモードで起動するためには、Terminal を使って起動オプションを呼び出す必要がある。仕方がない仕様なのだが、できれば起動オプションをアプリケーションに持たせて欲しいものだ。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -safe-mode
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -safe-mode
- アプリケーションを終了しておくこと
- 起動状態で使用するとアラートが表示され、コマンドは実行できない
- 起動オプションを設定することができるので、このオプションも覚えておくと良い
3. プロファイルマネージャ起動
Thunderbird のプロファイルマネージャを起動するコマンド。これも仕方がない仕様なのだが、できればアプリケーションに起動オプションを持たせて欲しい。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -p
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -p
- アプリケーションを終了しておくこと
- 起動状態で使用するとアラートが表示され、コマンドは実行できない
4. プロファイルを指定して起動する
複数のプロファイルを保存していて、その中から指定したプロファイルで起動したい場合に使用する。
使い道としては素のプロファイルと常用するプロファイルを用意しておき、普段使用しているプロファイルに問題が起きた場合は素のプロファイルに切り替えて起動することで、問題が Thunderbird 本体かプロファイルなのかを切り分けることができる。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin /Users/User Name/Library/Thunderbird/Profiles/***
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin /Users/User Name/Library/Thunderbird/Profiles/***
- アプリケーションを終了していること
- 「User Name」は自分のホーム名に置き換える(※1)
- プロファイルフォルダの名称を「***」へ正確に入力すること(※2)
- パスが間違っていたり、起動中のプロファイルを指定してしまった場合は「複数の…を起動することはできません」とアラートが表示される
- Note: (※1)
- 名前に「スペース」が含まれる場合は、スペースの前にバックスラッシュ「\」を入れてエスケープする必要がある。
- Note: (※2)
- Terminal の画面で「***」の部分にプロファイルフォルダをドラッグ&ドロップするとパスが自動的に補完される
ただし、ドラッグ&ドロップで入力されたパスの一番最後の「/」を消してから return キーを押さなくては実行されないので注意
5. エラーコンソールを開く
Thunderbird が何かの理由でフリーズや異常終了してしまった場合、エラーコンソールから起動することで、何が問題なのか知ることができる場合がある。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -jsconsole
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -jsconsole
6. 起動時にアドレスブックを開く
Thunderbird を起動すると同時にアドレスブックを開く。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -addressbook
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -addressbook
7. 新規メール作成ウィンドウで起動する (Compose)
新規メール作成ウィンドウで起動します。これは使えるかな…。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -compose
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -compose
8. 環境設定で起動する
Thunderbird の環境設定で起動する。これも使えるかな…。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -options
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -options
9. ニュースクライアントで起動する
ニュースクライアントとして設定していないので未確認だが、動くようだ。
- Full Path
- /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -news
- Current Directory
- cd /Applications/Thunderbird.app/Contents/MacOS/; ./thunderbird-bin -options
Library
スクリプト置き場
ラウンチャー
プロファイル表示
ターミナル操作
FirefoxのCSS
▲ Return to Top