Created
February 8, 2020 17:47
-
-
Save 8q/df50d1b34ca1b70f73390959252fa85e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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