Skip to main content
Known Participant
August 21, 2005
Question

Can the file browse scheme be modified?

  • August 21, 2005
  • 13 replies
  • 806 views
I would like to create some new views in Bridge that don't show some files in a directory. In particular, one thing I'm trying to do is to create a view that only shows the latest versions in a directory (e.g. don't display originals when there is an edited derivative).

I've got all the script code that iterates through an existing view in Bridge and identifies which thumbs I want to keep and which ones I don't want displayed, but I can't figure out how to modify which thumbs are or are not displayed. Thumbs have a "hidden" property, but that is listed as readOnly and setting it to true does, indeed, not do anything.

I can't tell if a Browse Scheme is what I should be implementing or not. I want nearly all of the functionality of the existing file view so I'd hate to have to re-implement all of that in my own scheme. Is it possible to "hook" or "sub-class" the existing file view or file browse scheme so I can modify it slightly?

--John
This topic has been closed for replies.

13 replies

Known Participant
August 21, 2005
John,

To my knowledge, there isn't a more complete example lying around.

I'll work one up and post it. Might take a few days for me to get up on the learning curve myself.

The app.registerBrowseScheme call takes the scheme name (something you make up) and a handler script function. While I've never done it, I would assume that the handler fires when a document using the scheme name opens.

I would assume that your handler function would create thumbnails and add them to the document. (but that's not firm knowledge on my part at this point).

There are a slew of document and thumbnail events as well.

Bob
Adobe WAS Scripting
Known Participant
August 21, 2005
I'm confused about how a custom browse scheme lets me do what I want. (probably because I don't really understand what they are). I guess I'm in search of sample code for a browse scheme that does something real and non-trivial that I can study. I see code snippets where custom browse schemes add things to the favorites panel, but I have no need/interest in doing that. The file system stuff in the favorites panel is fine for my needs.

If I create a browse scheme and register it and put a top node into the favorites panel, how do I then control the view of files in the content pane the way I want. Are there events that I can intercept on my own browse scheme? Are there methods I supply somehow?

Are there any pieces of sample code that illustrate a non-trivial browse scheme? That shows different views of the file system than the default views?

--John
Known Participant
August 21, 2005
John,

I believe a custom browse scheme is what is needed here. It is not possible (AFIK) to hook or sub-class an existing browse scheme.

I've never had the need (so far) in my bridge work to create a custom browse scheme, it's on my list of things to do.

As you get going on it, I'll provide you with whatever help I can. If I don't know the answers, I'll find them for you.

Bob
Adobe WAS Scripting