Searching within a collection?

I work with a massive library of images, over 15,000 images are in. It is located on a server at work and is very slow to load whenever I need to find a picture.

Yesterday, I realized I could save a collection, so I did. This makes it much faster to load the images. However, I now need to look in the pictures. I load the collection, research, type 'Beach' and he told me that he has nothing to do with the word "beach" in it on my desk. I don't want to get my office - I want to search my collection. How to make this work?

It seems that you cannot search collections, but it can be done with a script, as for example the following script will create a new collection of the search criteria.

Copy and paste the script in ExtendScript Toolkit

Starting point

Edit - Preferences - Startup Scripts

Click the button to "Reveal" to open the folder where the script should be saved.

Close and restart Bridge and accept the new script.

Use:-using the right context menu of the mouse select "find in the Collection.

#target bridge
   if( BridgeTalk.appName == "bridge" ) {
collectionFind = MenuElement.create("command", "Find in Collection", "at the end of Thumbnail");
}
collectionFind.onSelect = function () {
   findInCollections();
   }
function findInCollections(){
var cols =app.getCollections();
if(!cols.length) {
    alert("There are no Collections to search!");
    return;
    }
var win = new Window('dialog',"Collections");
win.orientation = "column";
win.pnl1 = win.add('panel', undefined, undefined, {borderStyle:"black"});
win.g1 = win.pnl1.add('group');
win.title = win.g1.add('statictext',undefined,'Find in Collection');
win.title.alignment="fill";
var g = win.title.graphics;
g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
win.g5 = win.pnl1.add('group');
win.g5.orientation = "row";
win.g5.alignment="left";
win.g5.st1 = win.g5.add('statictext',undefined,'Select Collection...');
win.g5.dd1 = win.g5.add('dropdownlist');
for(var a in cols) { win.g5.dd1.add('item', cols[a].name);}
win.g5.dd1.selection=0;
win.g10 = win.pnl1.add('group');
win.g10.orientation = "row";
win.g10.alignment="left";
win.g10.st1 = win.g10.add('statictext',undefined,'Find ...');
win.g10.et1 = win.g10.add('edittext');
win.g10.et1.preferredSize=[200,20];
win.g100 = win.add('group');
win.g100.orientation = "row";
win.g100.alignment="center";
win.find = win.g100.add('button',undefined,'Find');
win.find.preferredSize=[100,30];
win.cancel= win.g100.add('button',undefined,'Cancel');
win.cancel.preferredSize=[100,30];
win.find.onClick=function(){
  if(win.g10.et1.text == ''){
      alert("You haven't entered anything to find!");
      return;
      }
  win.close(1);
 var collectionToSearch = app.getCollectionMembers(cols[Number(win.g5.dd1.selection.index)]);
 var newCollection = [];
 var REX = new RegExp(win.g10.et1.text,"gi");
 for(var s in collectionToSearch){
     if(collectionToSearch[s].name.match(REX)) newCollection.push(collectionToSearch[s]);
     }
 if(!newCollection.length){
     alert("No match found");
     return;
     }
 var Name = "Found in " + win.g5.dd1.selection.text;
 var foundFiles = app.createCollection(Name);
 for(var c in newCollection){
     app.addCollectionMember(foundFiles,new Thumbnail(newCollection[c]));
     }
}
win.center();
win.show();
}

Tags: Bridge

Similar Questions

  • I can't make a new collection within a collection.

    I can't make a new collection within a collection. LR recognize only a witch five collection I did at the beginning of the use of LR

    You must first do a defined Collection and then create collections it contains.

  • How 2 search within a PDF document using the PDF reader internal Firefox

    Could not find a way to search for text in a PDF document, when it is displayed by the PDF reader integrated into Firefox.

    If there is a way, how do you?

    If there isn't a way, it seems an obvious improvement.

    Implementation of the "Find" (CTRL + F) feature usual should work within a PDF in Firefox.

  • Is it possible to search the ArrayCollection collection by index?

    Hi all

    I know, we can loop and compare each element of the ArrayCollection collection to get the correct item that we want. Obveriously, performance is going to hurt and it is not a wise method of search. Can we create an index for the key field of each item? Or any other class offering such a feature?

    Thank you

    When you say "a clue" are you talking like one in a table of database index?  That is something that can speed up a search?

    I'm trying to understand your desire and I think that what I hear, is that you have an ArrayCollection collection contains a number of objects.   When you want to find a particular object, you have found a way to locate the desired instance to browse each item in the collection ArrayCollection and ask "this element is equal to the key of the object I'm looking for?   I think that you are concerned by the amount of time it can take.

    Go back decades to my knowledge of computer science, this is an o(n) algorithm where n is the number of items in the table.

    Now, if there was an 'index' (ala databases) on the data, so if this index have been sorted, you would be able to find your match in O (log n)

    You can pay an O (n log n) cost the sort index when the data structure is created, but if you have a large number of research, then it can pay for itself.

    I'm not aware of any function that will help you on this out of the box (but that doesn't mean not there does not exist, only that I don't know about it.)

    I would like to also truthly ask yourself "is it worth the cost?   How many items you will have a typical table?  How often do you locate an entry in this table?

    Neil

  • Engine Google search within our site Web (EverythingEssential.me) just started giving results in strange format. It's ok on IE.

    We use the Google search engine on our website (EverythingEssential.me) and have not had any problems. Today, I noticed the format of results page is messed up on my normal browser, FireFox. The results look very good if I use an Internet Explorer browser.

    I don't see that on Firefox. I see not the same as your screenshot of IE.

    Reload Web pages, and ignore the cache.

    • Hold SHIFT and click reload.
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Cmd + Shift + R' (MAC)

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Windows 7 search within keyword string

    Hello

    Is it possible to define the search string for window 7 in keyword.

    For example: I have a file named "midnight", "tonight" and "late night." I want to be able to search all these files by using the word "night".

    At the moment Windows 7 recognize only if the word is stand alone or at the beginning. The result of the search for 'the night' will not, if you use example above "late night." Any help would be appreciated.

    Use the old trick of BACK, use an * asterisk as a wildcard.

    To find these files, simply put * night * in your search box.

  • Navigation within a collection

    In the old application, we have several ways to navigate through a collection.

    image.png

    In DPS2015 miss him at least a bar of navigation at the bottom of the screen, let us quickly to end to start (or vice versa) in a collection.

    If you open a collection that you have already started to read, you arrive on the page you last visit. This is correct behavior.

    But if you then want to read from the beginning, the only way to achieve this is to slide one and a single article - until you after 50 articles to find what you are looking for.

    We use the display of the content, not the page go.

    Hey Espen,

    Page browse replaces these two elements of navigation in 2015 of DPS. If you want to offer this style of quick navigation to your readers we enjoin you to activate the page go to your collection. You can also put a link to navto://relative/first on your items that, when struck, would bring back the player at the beginning.

    Neil

  • Search within documents does not work

    Hi all

    I'm a technical support engineer in a company and we are facing following problem.

    For some users the windows search returns no results when you search for specific words that are written in a PDF (windows search) file is stored locally or on a network drive.

    We have already tried

    1. we checked the parameters of indexation (search is enabled for files indexed and non-indexed) in the Index options = > Advanced Options = > file types = > pdf filter is indicated in the description of filter and we scored "properties of the index and contents of the folder.

    2 installed Adobe iFilter

    3 remove a path from the register which is also responsible for this question http://support.microsoft.com/en-us/kb/977380

    4 recreated Index

    Information System

    Windows 7 SP1 Enterprise x 64

    Adobe Acrobat Reader 11.0.0

    If you need other information. Please let me know and I apologize for my bad English.

    Best regards

    This problem is not really related to Adobe Reader. It's a matter of Windows.

  • Search within a Page

    I'll put the Bills on a page on my server. Want to be able to find with the help of a search function

    If you have a database, you can use a PHP query to find the contents of your MySQL.  Otherwise, you need to use 3rd party software or services such as software scaling, FreeFind or Google search.

    You can also use the search function in your browser - Ctrl + F.

    Nancy O.

  • How to create an advanced search (within my site) with Adobe Muse cc box?

    Help

    Hello

    Please, try the suggestions and widgets in the links below.

    e http://www.Muse-themes.com/blogs/News/14113125-Beautiful-site-search-in-Adobe-Muse-swiftyp

    How to use the Addsearch widget

    How to create a search box in MUSE?

    Concerning

    Vivek

  • You will need access to an ArrayCollection collection within a collection ArrayCollection to dataField in DataGrid.

    I have a DataGrid and the DataProvider is an ArrayCollection collection; However, some of my dataFields need to access the data in an ArrayCollection collection in collection of the DataProvider ArrayCollection.

    How can I access the ArrayCollection 'embedded' collection to fill the dataFields?

    Thank you...

    You can use a labelFunction for column in the data grid and do whatever you need to do it in.

  • Search within the loop

    Hi all

    I tried to write a loop that search in a table and returns a name if a date is between certain dates, but I had no success. Thanks in advance for any help.

    Sample data:

    Date received: 09-SEP-09 * THIS SHOULD RETURN THE NAME of ball

    sst_agency_name_history
    ID NAME DATE_CREATED DATE_RETIRED
    1 Apple 1 January 08 to 31 December 08
    2 ball 1 January 09 to 31 December 09
    Cat 3 1st January 10

    function GET_AGENCY_NAME(i_rfi_id  in foi_request_for_information.ID%type   
                            ) RETURN sstdba.sst_agency_name_history.agency_name%type
    AS       
      
      
      v_routine_name CONSTANT VARCHAR2(100) DEFAULT 'GET_AGENCY_NAME' ;    
      
        v_agency_name       varchar2(300) ;   
        v_agency_id         number;
        v_name              varchar2(300);
        v_max_agency_name   varchar2(300);
        v_created_on        date;
        v_retired_on        date;
        v_date_received     date;
        v_id                number;
         
     
      -- Cursor to retrieve the dates
       CURSOR c_AgencyHistory IS
                     select id,agency_name, to_date(created_on,'DD-MON-YYYY'),to_date(retired_on,'DD-MON-YYYY')
                     from SSTDBA.sst_agency_name_history
                     where agency_id = v_agency_id
                     order by id asc;
                     
          
     BEGIN    
       v_agency_id := GET_AGENCY_ID(i_rfi_id => i_rfi_id) ; 
       
       select to_date(date_received,'DD-MON-YYYY') into v_date_received
              from foi_request_for_information
              where id = i_rfi_id;
           
           select agency_name
           into v_max_agency_name
           from SSTDBA.sst_agency_name_history
           where id = (select max(id) from sstdba.sst_agency_name_history
           where agency_id = v_agency_id);
       
            FOR r_AgencyHistory in c_AgencyHistory
             LOOP
             
                                          
                       if v_date_received between v_created_on and v_retired_on
                   
                         then v_agency_name := v_name;
                   
                       else v_agency_name := v_max_agency_name;
                 
                       end if;
                 
            END LOOP;                
       
           
      v_agency_name := TRIM(v_agency_name) ;   
        
    RETURN v_agency_name ;  
      
       COMMIT;
      
    EXCEPTION   
      WHEN NO_DATA_FOUND THEN   
        RETURN NULL ;   
         
      WHEN OTHERS THEN   
      BEGIN   
        SSTDBA.SST_UTILITY.log_MESSAGE(   
           i_record_type       => 'ERROR'   
          ,i_module_name       => GL_MODULE_NAME   
          ,i_routine_name      => v_routine_name   
          ,i_debug_information => 'i_rfi_id = '||i_rfi_id    
          ,i_sql_statement     => NULL ) ;   
              
        RAISE ;   
      END ;          
        
    END GET_AGENCY_NAME ;
    Thanks again

    Published by: user10256482 on August 18, 2010 13:47

    Hi user10256482.

    Correct me if I am wrong-, but your check: If v_date_received between v_created_on and v_retired_on<-- v_created_on="" and="" v_retired_on="" are="" null="" at="" this="" point="" are="" they="" not?="" as="" is="" v_name="" that="" you="" are="" attempting="" to="" assign="" to="">

    So first of all, I would like to give your columns date some aliases:

       CURSOR c_AgencyHistory IS
                     select id,agency_name, to_date(created_on,'DD-MON-YYYY') created_on,to_date(retired_on,'DD-MON-YYYY') retired_on
                     from SSTDBA.sst_agency_name_history
                     where agency_id = v_agency_id
                     order by id asc;
    

    Then your real failure, refer to the value of the current line:

    FOR r_AgencyHistory in c_AgencyHistory
             LOOP
    
                       if v_date_received between r_AgencyHistory.created_on and r_AgencyHistory.retired_on
    
                         then v_agency_name := r_AgencyHistory.agency_name;
    
                       else v_agency_name := v_max_agency_name;
    
                       end if;
    
            END LOOP;
    

    In addition, there are a SQL and PL/SQL - PL/SQL and SQL - section which could be more suited to this issue (as it is not related to the Apex).

    Van
    Trent

  • Search within a form?

    Hello

    What a way to find in .fmb (or RDF) files for text? I want to search if a form somewhere, uses a table or reffers to it. This because a table has been removed and the form has many blocks of data and program units, and I don't know exactly where this table is displayed, so I want all the search somehow form and find this table, delete from code. I tried with TextPad (audited binaries), but I did find something clear.

    Thank you!

    Edited by: Roger22 the 22.12.2009 10:15

    Don't you have installed form generator? If you do, under Edition, find/replace your current form. It is forms [32 bit] Version 10.1.2.3.0 (Production)

  • How can I search within a cluster table?

    I have a cluster that contains a control channel and a DBL control.

    A table consists of the latter.

    The table looks like the lines below.

    'min' 3.55

    10.33 "max".

    7.33 "average."

    How can I retrieve the value of 'min' without having to inspect all the elements of this array in my LabVIEW code?

    In C, C++ and java, there is 'map', but it doesn't seem to be an equivalent to the card in LabVIEW.

    Try to give a peek here:

    http://forums.NI.com/T5/LabVIEW/how-do-I-create-an-associative-array/TD-p/764454

    Kind regards

    Marco

  • Get 'no photos matching the filter' in the collections, but not sets of collections during the search.

    I can't use the filters in the library collections that return no results despite the fact that there are valid search criteria. Images with a star ratings do not appear when filters are the nominal value in the collection. Filters will return the result when searching in the collection sets however. I'm puzzled. Is this a bug?

    Found it... the 'used' filter preset in the menu dropdown was selected but hidden.

Maybe you are looking for

  • How can I translate a message in English?

    I get messages in Italian. So far, I copy and paste into a translator. Is there a better method to get the message translated into Thunderbird?

  • Satellite C660-20 t: need to get the warranty for the India

    I intend to buy the laptop of KAU model: Satellite C660 20 T.I stay in India will I get the warranty of my tour in India? Help, please...

  • iPad latest itunes needs

    When I connect air ipad 2 (about a year) to macbook pro os 10.3.6 (it says "unusable ipad because it requires newer itunes" go to www.itunes.com.) But there is no download link there. How to get the most recent itunes? I don't know how to see what ve

  • Video of s3100y scrolling problem and the addition of video card

    I have an intermittent problem with the screen scrolling on its own, especially as I move the mouse. I suspect it is the video card material which is integrated motherboard. Usually, I can restart and it works fine for a while. I wonder especially if

  • How can I configure Vixia HF R62 to 24 p?

    Specs say that if you choose 17Mbps, the pace should be 24 p, but it shows 30 p with no other option. How do you define the 24 p camcorder?