同步现在的代码
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<package>
|
||||
<job id="openTypora">
|
||||
<script language="JScript">
|
||||
var url = WScript.Arguments(0);
|
||||
var filePath = decodeURIComponent(url)
|
||||
.replace(/^typora:\/\/file\//, '')
|
||||
.replace(/\//g, '\\');
|
||||
new ActiveXObject("WScript.Shell").Run(
|
||||
'"D:\\Program Files\\Typora\\Typora.exe" "' + filePath + '"', 0, false
|
||||
);
|
||||
</script>
|
||||
</job>
|
||||
</package>
|
||||
Reference in New Issue
Block a user