Skip to content

Instantly share code, notes, and snippets.

@Qofar
Created November 10, 2015 20:18
Show Gist options
  • Save Qofar/151451e58fb4e64c716e to your computer and use it in GitHub Desktop.
Save Qofar/151451e58fb4e64c716e to your computer and use it in GitHub Desktop.
/*
スクリプト初期化データ
guid={62888523-6C0A-4CAA-9B81-8AF279D7D5E1}
caption=OnDoneThreadGrowl
version=0
hint=ダウンロードスレッド終了時、Growlへ通知
event=OnDoneThread
match=
author=Qofar
synchronize=1
*/
function OnDoneThread(success,filename,urlinfo,item,folderdata,optiondata){
/*
ダウンロードスレッド終了イベント
※synchronize=1 以外の場合にIrvine.Api/UrlManager/Folder/Itemを使用しないでください
※ダイアログを呼びださないでください
*/
var shell = new ActiveXObject("wscript.shell");
var msg=(success?"[完了]":"[失敗]")+"\n"+filename;
var cmd = '"C:\\Program Files (x86)\\Growl for Windows\\growlnotify.exe" /t:"Irvine" /i:"E:\irvine1_3_1\hoticon.ico" /a:"Irvine" /ai:"E:\irvine1_3_1\hoticon.ico" /r:"Irvine" /n:"Irvine" /pass:"Irvine" "'+msg+'"';
// println(cmd);
shell.Run(cmd);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment