0
0

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:ドックに入れたアイコンをクリックして Julia を起動する方法

Posted at

Dock から Julia を起動する .app ファイルの作成

  1. Automator を使って新しいアプリを作成する

    1. Finder で アプリケーション フォルダを開き、Automator を起動する
    2. 新規書類 を選択し、「アプリケーション」を選ぶ
    3. 左側の「ユーティリティ」から「シェルスクリプトを実行」をドラッグして右側に配置する
    4. スクリプト内容を以下に変更する
         #!/bin/bash
         open -a Terminal /Users/foo/.juliaup/bin/julia
           重要: foo を実際のユーザー名に置き換えてください。
           (例: ユーザー名が myuser の場合、/Users/myuser/.juliaup/bin/julia)
    5. 上部の「シェル」で zsh または bash を選ぶ(普段使っているシェルに合わせると良い)
    6. 保存:
      • 「ファイル」→「保存」を選択し、アプリケーションの名前を「Julia」などに設定する
      • 保存先は「アプリケーション」フォルダを選ぶ
  2. 動作確認

    1. Finder で「アプリケーション」フォルダを開き、作成した「Julia」アプリをダブルクリックする
    2. ターミナルが開いて Julia が起動するか確認する
  3. Dock に追加

    1. Finder で作成した「Julia」アプリを探す
    2. そのアイコンをドラッグして Dock に追加する
  4. おまけ -- カスタムアイコンを追加する方法

Dock に表示されるアイコンをカスタマイズしたい場合は、次の手順で行える
1. Julia の公式ロゴ画像を用意する(PNG 推奨)
2. Finder で「情報を見る(Command + I)」を選択し、上部のアイコンに画像をドラッグして設定する

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?