Current active window bridge path
Hi
Im trying to make a context Menu script that creats several folders once i press it.
The problem is, i don't know how to get the current active window path for the creation of the folders. Im currently stuck with an absolute path.
Anyone know how i can modify the red line to make it work with the current folder path that bridge is displaying when i press the menu?
This is what i have:
#target bridge
if( BridgeTalk.appName == "bridge" ) {
var Ordnerstruktur = new MenuElement( "command", "Ordnerstruktur Erstellen", "-at the end of Thumbnail","uniqueId1");
}
Ordnerstruktur.onSelect = function () {
var folder1 = Folder("~/desktop/My New Folder");
//Check if it exist, if not create it.
if(!folder1.exists) folder1.create();
alert("Menü 1 gedrückt");
}