$ 0 0 The folder of the script? Why not: alert(File($.fileName).parent.fsName); (but only if script is already saved) Have fun