Copy link to clipboard
Copied
The workflow starts in the Bridge app with the Edits folder.
The thumbnails are selected and a Photoshop scripts saves them into the Review folder and calls the Bridge to the foreground.
How can I select the Review folder after the Bridge is called to the foreground?
Basically going from the folder path /Edits to the folder path /Review
Folder stack
Selects
Edits
Review
Finals
'with(app.document) thumbnail = decodeURI(File(presentationPath).path) + "/" + ' + theFolder.toSource()
Copy link to clipboard
Copied
var myFolder = 'path/to/folder';
if(Folder(myFolder).exists){
var thumb = new Thumbnail(Folder(myFolder));
app.documents[0].thumbnail = thumb;
}
Copy link to clipboard
Copied
Unless you want to open it (Bridge Script Create New folder) just select it:
with(app.document) select(new Thumbnail(presentationPath + '/Review'))
Copy link to clipboard
Copied
Thank you both for your suggestions. I will test the recommendation over the weekend.
Copy link to clipboard
Copied
Hello, I am sorry for taking awhile to get back to test teh snipts.
Using a Photshopscript that has a function at the end to call Bridge to forground,
I am trying to modify the function to display the content of a specific directory in the Bridge content pane.
Folder stack example
Selects
Edits
Selelcted Bridge thumbnails (run photoshop script with function at the end to call Bridge to the forground)
-T (subfolder)
Review
Finals
At the moment the function calls Bridge to the forground and slectes the subfolder T.
What I am trying to do is select the folder Review which is on the same lavesl as the Edits folder.
What needs to change on the function to travel one step up, select the folder Review and open it in the Bridge content pane?
Copy link to clipboard
Copied
with(app.document)
pth = thumbnail = decodeURI(File(presentationPath).path)
+ '/Review', select(new Thumbnail(pth + '/T'))
Copy link to clipboard
Copied
There are multiple ways to traverse folders with Extendscript, this is one good example.
Copy link to clipboard
Copied
Thnk you this work well. I removed the reference tothe subfoder T.
Is it possible to make the string "Review" into a varaible?
The code below does not work but it illustrates the varaible use.
Copy link to clipboard
Copied
'with(app.document) thumbnail = decodeURI(File(presentationPath).path) + "/" + ' + theFolder.toSource()
Copy link to clipboard
Copied
Awosome! you are too good Kukurykus. Thank you!