Skip to main content
Participating Frequently
August 15, 2006
Question

Creating Custom Find Results

  • August 15, 2006
  • 2 replies
  • 538 views
I would like to create a script that imports a list of image pathnames and creates a browser window like Find Results with thumbnails for each pathname. So that I could then select all the thumbnails and do some batch processing.

The images would be gathered across my file system, i.e. they would not be contained within a single folder.

I can't find any documentation or code snippets that would allow one to script a custom Find command. For instance, I imagine that a Document object would need to be created and initialized with an array of thumbnails, but it's not clear how that might be done.

Anyone have any ideas?
This topic has been closed for replies.

2 replies

Participating Frequently
August 22, 2006
Thanks for the suggestion about Collection files.

In my case I need the flexibility to create a browse window with an arbitrary set of images extracted from across my photo file hierarchy, analogous to the window constructed by Edit\Find. The set being defined by some arbitrary script computation and external text files with image file URIs.

This should be easy to do but I can't find the necessary methods to set the list of thumbnails displayed by a window. I thought for sure that this must exist.
Participating Frequently
August 18, 2006
Hi Jack,

I'm trying to solve the same problem.
But I want to search all Files that contain a certain keyword. My solution is creating collections. The collections are a simple xml file with a certain bridge-query tag. Everything that you kann select in the bridge Find dialog can also be customized there. So it is no problem to write such a xml file with the criteria you want via script.
In my case with the keyword it's quite simple. your search for an array of filenames would only be succesfull if you have unique filenames.

A problem that I have not solved yet is how I could execute the search without user interaction. Till now it only works if the user clicks on the xml File. But there must be a (maybe quite simple) way to execute the file script based.

markus