Skip to content

Instantly share code, notes, and snippets.

@8q
Created February 8, 2020 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 8q/df50d1b34ca1b70f73390959252fa85e to your computer and use it in GitHub Desktop.
Save 8q/df50d1b34ca1b70f73390959252fa85e to your computer and use it in GitHub Desktop.
on open location url_scheme
(*デリミタで文字列抽出*)
set AppleScript's text item delimiters to {"vlc://"}
set txt_items to text items of url_scheme
set AppleScript's text item delimiters to {""}
set scheme_txt to txt_items as Unicode text
do shell script ({"/Applications/VLC.app/Contents/MacOS/VLC ", scheme_txt} as string)
end open location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment