- 820 名前:名無しさん@お腹いっぱい。 [2009/04/18(土) 01:36:30 ID:Wpcbi4tm0]
- const IE_PATH = "C:\\Documents and Settings\\…\\My Documents\\My Dropbox\\Jane Style\\Jane2ch.exe";
var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile); file.initWithPath(IE_PATH); if (!file.exists()) { alert("File does not exist: " + IE_PATH); return; } var process = Cc["@mozilla.org/process/util;1"].createInstance(Ci.nsIProcess); try { var args = [window.content.location.href]; process.init(file); process.run(false, args, args.length); } catch (ex) { alert("Failed to execute: " + IE_PATH); } Firefoxで以上のようなスクリプトを使って、リンク先をJaneで開くようにしているのですが、 Googleの検索結果ではJaneに飛ばせません。 どうすればいいのでしょうか?
|

|