Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/binghuan/macosx_launch_app_from_weblink

Method to demo how to launch app by using web page's link.
https://github.com/binghuan/macosx_launch_app_from_weblink

macos macos-app

Last synced: 13 days ago
JSON representation

Method to demo how to launch app by using web page's link.

Awesome Lists containing this project

README

        

# MEMO


Reference 1. http://www.macosxautomation.com/applescript/linktrigger/
Reference 2. http://hublog.hubmed.org/archives/001154.html
Following method by using reference 2.
Use Platypus to create a test.app.
Then, put the test.app into folder "/Applications/"

The file hierarchy will be like this:
BH_MacBookPro:test.app binghuan$ tree
.
└── Contents
├── Info.plist
├── MacOS
│ └── test
└── Resources
├── AppSettings.plist
├── MainMenu.nib
├── appIcon.icns
└── script

finally, add following key into Info.plist, that's it.


```html
CFBundleURLTypes


CFBundleURLName
Local File
CFBundleURLSchemes

local

NSUIElement

```