0
我試圖在HTML中的鏈接中嵌入蘋果腳本,但它所做的只是帶有帶腳本的腳本的Apple腳本編輯器應用程序。如何在點擊HTML鏈接時執行Apple腳本?
我希望它執行後,我點擊鏈接 - 所以我沒有按播放按鈕。
有人可以幫我修復這個真正的快速嗎?
link.html
<a href = "
applescript://com.apple.scripteditor?
action=new&script=
tell application %22Safari%22%0D%09
make new document with properties {URL:%22https://www.google.com%22}%0D%09
end tell ">
Click me to run the script !
</a>
結果:
這取決於用戶的瀏覽器/操作系統。 Mac如何選擇打開文件完全取決於它,據我所知,在代碼中你無能爲力。 – Eclecticist 2015-02-12 02:39:17
你想說 - 我想做的事是不可能的? – iori 2015-02-12 02:52:40
我在說你可以在自己的電腦上做,但我認爲你不能爲別人的電腦做。 – Eclecticist 2015-02-12 02:57:05