Skip to main content
Adobe Photoshop Family

186 Messages

 • 

3.6K Points

Mon, Aug 26, 2013 3:29 PM

1

Bridge: Signing Folders with folder icons (not label, rating). This is why.

I have to verify thousands of Folders containing images and I need to leave some kind of visible mark that shows not on content panel but on Folder left panel (I'm talking about Bridge panels).

Until now, I have done it renaming the folder itself (putting an _ before the name).
In fact I use a specific app created to upload photos from the studios by the photographers. This app reads a bar-code to rename the images with a number and makes folders also with that number.
But this is not the fast method.

I was wondering why bridge has not solved this until now, because I think it is a such important matter to have on a high production scale of large amount of information with several people navigating those folders.
I'm talking about photographing daily more then 5000 images (yes, I mean every single day).

The folder renaming process has this positive/negative issues:

POSITIVE
- it can de renamed by button (script SDK to have a subpanel with buttons);
- the people after me immediately know that folder is ready to continue the process;
- it can be used to detect where are more unverified folders by script without navigating by clicks on folders panel;
- by script it blocks the rename if it was renamed before already.

NEGATIVE
- the registration of specific folders on several reports (like spreadsheet or other documents) could loose the path of that folder registered because it was renamed;
- the process to rename, only works well after the auto-refresh of image thumbnails on content panel, and if the rename button is pressed before, all the folder panel loose the place where it was navigating before;

All the people here at work can understand quickly the benefits why not to rename the folders, and the first one of all is to maintain the path always the same so everybody has the same way to find and register each product.

Someone has solved this by experience differently? How?

Any way, this would be a great and simple improvement to develop on Bridge.

Responses

361 Messages

 • 

6.9K Points

7 years ago

You could use scripts to do this...
To add an Icon to the folder you are in...



#target bridge
if( BridgeTalk.appName == "bridge" ) {
folderIcon = new MenuElement("command", "Icon Folder", "at the end of Thumbnail","icfolder");
}
folderIcon.function () {
var f = File(app.document.presentationPath + "/desktop.ini");
f.open('w');
f.encoding = "UTF8";
f.writeln("[.ShellClassInfo]");
f.writeln("IconResource=C:\Windows\system32\SHELL32.dll,13");
f.writeln("[ViewState]");
f.writeln("Mode=");
f.writeln("Vid=");
f.writeln("FolderType=Pictures");
f.close();
f.hidden=true;
var cmd = "attrib +s
#target bridge
if( BridgeTalk.appName == "bridge" ) {
folderIcon = new MenuElement("command", "Icon Folder", "at the end of Thumbnail","icfolder");
}
folderIcon.function () {
var f = File(app.document.presentationPath + "/desktop.ini");
f.open('w');
f.encoding = "UTF8";
f.writeln("[.ShellClassInfo]");
f.writeln("IconResource=C:\\Windows\\system32\\SHELL32.dll,13");
f.writeln("[ViewState]");
f.writeln("Mode=");
f.writeln("Vid=");
f.writeln("FolderType=Pictures");
f.close();
f.hidden=true;
var cmd = "attrib +s \"" +decodeURI(Folder(app.document.presentationPath).fsName) + "\"";
app.system(cmd);
};


To remove the Icon from the folder you are in...


#target bridge
if( BridgeTalk.appName == "bridge" ) {
remFolderIcon = new MenuElement("command", "Remove Icon Folder", "at the end of Thumbnail","icRemfolder");
}
remFolderIcon.function () {
var f = File(app.document.presentationPath + "/desktop.ini");
f.remove();
var cmd = "attrib -s \"" +decodeURI(Folder(app.document.presentationPath).fsName) + "\"";
app.system(cmd);
};
quot;" +decodeURI(Folder(app.document.presentationPath).fsName) + "
#target bridge
if( BridgeTalk.appName == "bridge" ) {
folderIcon = new MenuElement("command", "Icon Folder", "at the end of Thumbnail","icfolder");
}
folderIcon.function () {
var f = File(app.document.presentationPath + "/desktop.ini");
f.open('w');
f.encoding = "UTF8";
f.writeln("[.ShellClassInfo]");
f.writeln("IconResource=C:\\Windows\\system32\\SHELL32.dll,13");
f.writeln("[ViewState]");
f.writeln("Mode=");
f.writeln("Vid=");
f.writeln("FolderType=Pictures");
f.close();
f.hidden=true;
var cmd = "attrib +s \"" +decodeURI(Folder(app.document.presentationPath).fsName) + "\"";
app.system(cmd);
};


To remove the Icon from the folder you are in...


#target bridge
if( BridgeTalk.appName == "bridge" ) {
remFolderIcon = new MenuElement("command", "Remove Icon Folder", "at the end of Thumbnail","icRemfolder");
}
remFolderIcon.function () {
var f = File(app.document.presentationPath + "/desktop.ini");
f.remove();
var cmd = "attrib -s \"" +decodeURI(Folder(app.document.presentationPath).fsName) + "\"";
app.system(cmd);
};
quot;";
app.system(cmd);
};
<code></pre>

To remove the Icon from the folder you are in...
<pre><code>
#target bridge
if( BridgeTalk.appName == "bridge" ) {
remFolderIcon = new MenuElement("command", "Remove Icon Folder", "at the end of Thumbnail","icRemfolder");
}
remFolderIcon.function () {
var f = File(app.document.presentationPath + "/desktop.ini");
f.remove();
var cmd = "attrib -s
#target bridge
if( BridgeTalk.appName == "bridge" ) {
folderIcon = new MenuElement("command", "Icon Folder", "at the end of Thumbnail","icfolder");
}
folderIcon.function () {
var f = File(app.document.presentationPath + "/desktop.ini");
f.open('w');
f.encoding = "UTF8";
f.writeln("[.ShellClassInfo]");
f.writeln("IconResource=C:\\Windows\\system32\\SHELL32.dll,13");
f.writeln("[ViewState]");
f.writeln("Mode=");
f.writeln("Vid=");
f.writeln("FolderType=Pictures");
f.close();
f.hidden=true;
var cmd = "attrib +s \"" +decodeURI(Folder(app.document.presentationPath).fsName) + "\"";
app.system(cmd);
};


To remove the Icon from the folder you are in...


#target bridge
if( BridgeTalk.appName == "bridge" ) {
remFolderIcon = new MenuElement("command", "Remove Icon Folder", "at the end of Thumbnail","icRemfolder");
}
remFolderIcon.function () {
var f = File(app.document.presentationPath + "/desktop.ini");
f.remove();
var cmd = "attrib -s \"" +decodeURI(Folder(app.document.presentationPath).fsName) + "\"";
app.system(cmd);
};
quot;" +decodeURI(Folder(app.document.presentationPath).fsName) + "
#target bridge
if( BridgeTalk.appName == "bridge" ) {
folderIcon = new MenuElement("command", "Icon Folder", "at the end of Thumbnail","icfolder");
}
folderIcon.function () {
var f = File(app.document.presentationPath + "/desktop.ini");
f.open('w');
f.encoding = "UTF8";
f.writeln("[.ShellClassInfo]");
f.writeln("IconResource=C:\\Windows\\system32\\SHELL32.dll,13");
f.writeln("[ViewState]");
f.writeln("Mode=");
f.writeln("Vid=");
f.writeln("FolderType=Pictures");
f.close();
f.hidden=true;
var cmd = "attrib +s \"" +decodeURI(Folder(app.document.presentationPath).fsName) + "\"";
app.system(cmd);
};


To remove the Icon from the folder you are in...


#target bridge
if( BridgeTalk.appName == "bridge" ) {
remFolderIcon = new MenuElement("command", "Remove Icon Folder", "at the end of Thumbnail","icRemfolder");
}
remFolderIcon.function () {
var f = File(app.document.presentationPath + "/desktop.ini");
f.remove();
var cmd = "attrib -s \"" +decodeURI(Folder(app.document.presentationPath).fsName) + "\"";
app.system(cmd);
};
quot;";
app.system(cmd);
};

With both of these scripts it should refresh the Icon when you move to another folder.

361 Messages

 • 

6.9K Points

7 years ago

You can do this with scripts in Bridge (Windows), here are a couple of scripts, one to set the Icon and the other to remove it.
Download

The Icon is refreshed when you move folder.

186 Messages

 • 

3.6K Points

7 years ago

Nice to see you here Paul.
Thanks,

Regarding this useful script:
1 - I have tried on windows7 and it worked. But, if I have a new windows version, do you think that the icons will still appear? Would you start trusting on icons?
2 - Because I need to script to my company EU team and US team, this solves the windows EU team; The US team uses Mac. Do you think app.system(cmd) could be done to OSX to change folder?

361 Messages

 • 

6.9K Points

7 years ago

Hi, I don't have Windows 8 to do any tests, but what you could do is, when in Explorer (Windows 8) right click on a folder, Properties, Customize and select Change Icon. Once you have done this a new file will be created (desktop.ini) you should then see how it's been converted and you could amend the code to suit.

I think you would need to do a trial and test to see if the method works for your situation.

Sorry I don't work with Macs unless I really have to. Mark is the Expert with these.
All the best, Paul.

186 Messages

 • 

3.6K Points

Can you give me Mark contact or ID?

186 Messages

 • 

3.6K Points

7 years ago

Thanks Paul

361 Messages

 • 

6.9K Points

7 years ago

Hi Pedro, You should be able to contact Mark (Muppet Mark) by sending a private message. He is normally found in the Bridge scripting forum.
http://forums.adobe.com/community/bri...

186 Messages

 • 

3.6K Points

7 years ago

Paul, I didn't contact Mark because i just have manage to built the OSX app to change mac folder/file icons.

I was able to put applescript, shell, xml, and javascript to talk to each other and I'm happy!

Before I can call app.system, I need to update an working xml with 2 paths: to the image (icon) selected and to the folder or file I want to have that icon. All the rest is automatically done.