Copy link to clipboard
Copied
I want to know if the folder I have selected in bridge can be identified as the folder selected?
Like if(00318-000.selected==true){//then do something) something to that nature. I can test if a volume
var myMacHotFolder=(Folder(["/Volumes/Hotfolders/OdystarHotfolder/eDesign"]).exists);
What I want to know is can it be identified as being selected in Bridge? Then I want to get the name of it.
You can get the current folder with :-
alert(app.document.presentationPath);
Copy link to clipboard
Copied
You can get the current folder with :-
alert(app.document.presentationPath);
Copy link to clipboard
Copied
Sweet. Thank you Paul!
Copy link to clipboard
Copied
I am having difficulty with this (app.document.presentationPath;)
on the PC side. I am running Windows 7. For some reason it is returning an incomplete string.
I am getting 45 characters and I should be getting 67. This works on the Mac side but not PC any Ideas??
Copy link to clipboard
Copied
I am wondering if possibly this is the length of the string? Would that matter?
Copy link to clipboard
Copied
No the string would have to be in excess of 256 chars.
Have you got any characters in that path that may cause a problem?
You could try this...
alert(decodeURI(app.document.presentationPath));
Copy link to clipboard
Copied
I am afraid that it returned the same result. Everything is there until the end and there is a folder called Pages but it is returning "//string of folders/Pag and it should be Pages. The es is getting chopped off.
?
Copy link to clipboard
Copied
OK. I think I understand my problem a little bit more. For some reason not all of the string is showing in the alert. When I write the value to a text file its all there. That doesn't exactly solve my problem but I am much closer now.
Copy link to clipboard
Copied
Now that I was able to get the correct string. I have solved my problem.