LoginSignup
1
0

More than 1 year has passed since last update.

ChromeからMacのアプリを開くリンク

Last updated at Posted at 2021-08-17

自分用のメモです。
Chromeでページを開いたときに

[アプリ]を開きますか?
https://~~ がこのアプリケーションを開く許可を求めています。

という画面が出てくるので、これをどうやっているのか調べました。

結論としては

スキーム名://content

といった風に記述すればよいだけでした。
スキーム名はアプリのInfo.plistファイルに

<key>CFBundleURLSchemes</key>
   <array>
        <string>myapp</string>
     </array>

のような形で書かれています。開きたいアプリがあったらInfo.plistを覗いてみるとよさそうです。

対応表

アプリ名 スキーム
App Store macappstore
Slack slack
zoom zoommtg
vscode vscode
Line line
Word word
Excel excel

ブラウザからアプリを開きたいときにリンクを登録しておけばブックマークから直接アプリが開けたりなんかできるなと思いました。

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