Need fullpath for selected file in editbox
Hi All,
I've created below script. It is working fine.
Here is my question:
When I select my folder my edit box show my selected folder full path.
Please help me.
Thanks in advance.
var myDialog = new Window('dialog',);
myDialog.myPanel4 = myDialog.add('panel');
myDialog.myPanel4.helpTip = "Choose text file";
myDialog.myPanel4.Group15 = myDialog.myPanel4.add('group',undefined);
myDialog.myPanel4.Group15.EditText5 = myDialog.myPanel4.Group15.add('edittext',undefined,"/mytextfile");
myDialog.myPanel4.Group15.EditText5.preferredSize.width = 400;
myDialog.myPanel4.Group15.Button5 = myDialog.myPanel4.Group15.add('button',undefined,"Select");
myDialog.myPanel4.Group15.Button5.onClick = function ()
{
Folder.selectDialog ("Choose my text file");
var myfilePath
myfilePath=Folder.selectDialog
}
myDialog.show()