- 62 名前:26 mailto:sage [2007/12/10(月) 21:35:19 ID:TAJDJbIU0]
- 連投失礼。
とりあえず作りはじめた小物スクリプトから他人が使っても便利そうなのをアップ。 jFD2のショートカットは便利なんだけど、作業フォルダーには1アクションで行き たい。あらかじめ"home"の名前でショートカットを作っておくと、そのフォルダー に即ジャンプ。自分は"/"キーにアサインしてます。 import com.nullfish.lib.vfs.VFS; shortCutDirPath = (String)jfd.getCommonConfigulation().getParam("shortcut_dir", "") try{ file=new File(new File(shortCutDirPath),"home.jfdlnk") homePath=new String(file.readBytes()) home = VFS.getInstance(jfd).getFile(homePath) if(home != null){ jfd.getModel().setDirectoryAsynchIfNecessary(home, home.getParent(), jfd) } }catch(Exception e){ }
|

|