Only Select RGB Files?

I am creating a script to only select RGB Files. I am having problems with the Array because affter I am done its empty.
I was hoping to make a list of RGB files and then select them, But I have not been able to create a list yet.
#target bridge
app.document.deselectAll();
var thumbs = app.document.getSelection("jpg");
for(var a in thumbs){
var RGBlist=[];
var poop=app.document.select(app.document.thumbnail.children[a]) ;
var isRGB=app.document.selections[0].core.quickMetadata.colorMode;
var picSelect=app.document.selections[0];
if(isRGB==3){
    RGBlist.push(picSelect.name);
var noSelect=app.document.deselect(app.document.thumbnail.children[a]);
alert(RGBlist);
Any Ideas?

The core data returns an integer value not a string… 3 being RGB.
#target bridge
app.document.deselectAll();
var count = app.document.visibleThumbnailsLength;
for ( var i = 0; i < count; i++ ) {
    if ( app.document.visibleThumbnails[i].core.quickMetadata.colorMode == 3 ) {
        app.document.select( app.document.visibleThumbnails[i] );

Similar Messages

  • Using Acrobat 9 and suddenly there is no selected page range in the print box.   Only selected PDF files or all PDF files.  Am I doing something wrong?  I need to print only three pages from the document

    There is no selected print page range in the print box.  Only selected PDF file and all PDF files.  Any suggestions?

    Well, I looked for where to delete this but didn't see it.
    NEVERMIND; I forced iPhoto to quit and restarted and everything seems fine.
    BTW, I did get one thing wrong. When I looked at both iPhoto libraries with FINDER, the active one and the archived one both showed content as far as file size goes.
    It was because I was viewing the files through Adobe Bridge that it was showing 0 GB's; for whatever reason.

  • Filter in adobe bridge to only select Raw files for DNG conversion

    Here's my problem - I have a new DMC TZ70 camera and Lightroom 5.7 doesn't recognise the .RW2 files. I would need to buy LR6! Perhaps later.
    So I thought I will import via bridge and convert to DNG.
    So I open bridge and select the camera - fine - BUT there are files for the Raw images, the same number of JPEGs and some .bdm, .TDT etc files. (e.g. 3 raw + 7 others).
    I can set up a filter to view only the Raw files when I see what files are there in the card folder in Bridge but when I select "get photos from camera" I can either select them all OR deselect and then I need to MANUALLY select the raw files. There doesn't seem to be a way of setting up a filter in the Downloader screen so that Bridge only selects the Raw files for conversion.
    If I let it select all, Bridge converts the RW2 files to DNG but also brings in the jpgs and other files. I can delete these afterwards but this seems an inefficient way to do it.
    Is there any way to manually select the raw files in the photo downloader screen?
    Advice please, thanks, Mel

    Not sure I follow completely, Mel, but Bridge allows you  to View > Sort > Type... which would allow you, after sorting, to click on the first image with a specific extension, then hold down the Shift key to select the last in  the series and  handle them independent of the other files presented.

  • Shift key doesn't select blocks of files.  Even after clean install of mavericks in case it was old snow leopard problem.  Can only select individual files

    Hi for a few months my shift key stopped allowing me to select blocks of files and worked like the cmd key selecting just individual files.   Apple store sold me a. New keyboard when I connected it first time it worked. But after shutting down mac it never worked again.   Have just performed clean install of new mavericks as I was told it must be the permissions or other account settings etc.    But 2 days later after lots of work shift still doesn't work.  Every now and then it would work once and then. Not again.  I work with photos a lot and only being able to choose individual files is a nightmare.  Can anyone explain this problem.?

    I installed mavericks from a USB and reformatted the hd.  I set up a new user account added email, apple ID  etc and then downloaded new iPhoto and iMovie.  I manually copied documents, music inc itunes library folder and photos from time machine back up.   I also copied original apps only using migration assistant to get idvd and garageband back as despite a lot of searching i couldnt find a way to selectively reinstall original apps not purchased from app store.  Only third party apps are photoshop elements 9 and office 2011.

  • .AVI files not showng when RAW Only selected at import time

    Hi board,
    When I am looking at my SD card from my Nikon D90 in the Import view of Aperture I have the 'Raw Only' option selected for the RAW+JPEG Pairs setting. This results in .AVI files not showing up in the browser. Meaning that when I believed I was importing all my photos in RAW and my movies, my movies were actually not even considered for importing. I realize (now) that RAW Only quite litteraly means RAW Only, but why do I have to select Both when importing to get my movies? Then I would have to weed out any eventual JPEGs that I might have taken but do not want to import.
    I'm simply curious why .AVI are excluded together with .JPEGs. I did not consider this to be intuitive or clear to the user (since the setting is called RAW+JPEG Pairs, not mentioning that it could possibly exclude movies).
    Thanks!

    Same here, with Aperture 3.2.2, OS 10.7.2
    That definitely seems to be a bug to me; if either "JPEG only" or "RAW files only" is selected, the File Types selector is ignored, and no audio or video media are available in the import panel.
    Regards
    Léonie

  • I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    P.S. Site is http://www.coldwatercreek.com

  • Chose "encode selected video files" to create apple pro res, but only gave me audio. now files are gone.

    Hello, I chose the "encode selected video files" from the finder to convert some H.264 files to Apple ProRes. It outputed only audio (but still as a .mov file). And I also selected to delete the source files after finished, so now the originals are gone and i'm left with only audio. is there any way to get back my original files?

    Sounds like you selected Audio Only
    If you regularly back up your system, you could locate the copy of the original file and restore it .
    Russ

  • Even when I select a specific media type (or multiple media types) for ingest, Prelude imports .JPG etc.  I want to only import video files.

    Even when I select a specific media type (or multiple media types) for ingest, Prelude imports .JPG etc.  I want to only import video files within a section of subfolders.
    please help
    adobe prelude cc2014

    Prelude will ingest only the files that you have selected (checked the box next to) in the Ingest Dialog. Can you provide more information or screen shots of what you Ingest Dialog looks like BEFORE you ingest and what your Project Panel looks like AFTER you ingest?
    Thanks -
    Michael

  • JFileChooser - show files and directories only select directory

    I need a JFileChooser that will display directories and zip files but only allow a directory to be selected.
    basically i need to be able to select a certain directory that contains a certain zip file, so to make it easier to find i want the zip files to show up so i can find the correct directory...
    I tried...
            JFileChooser jfc = new JFileChooser();
            jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            jfc.setFileFilter(new FileFilter() {
                public boolean accept(File f) {
                    if (f.isDirectory()) {
                        return true;
                    else if (f.getName().endsWith(".zip")) {
                        return true;
                    return false;
                public String getDescription() {
                    return "testing";
            });but that only displays directories in the GUI.
    The javadoc for the setFileSelectionMode() says, "Sets the JFileChooser to allow the user to just select files, just select directories, or select both files and directories. The default is JFilesChooser.FILES_ONLY. " ....which makes you think that setting the file selection mode only alters what can be SELECTED...however it alters what is displayed as well.
    ...any ideas?
    thanks

    This should display the files of interest provided the filter is tuned to do so, and allow you to select either the file of interest or the folder... If you select the file, then folder it is contained is returned.
    JFileChooser chooser = new JFileChooser();
    chooser.setCurrentDirectory(new java.io.File("."));
    MyFileFilter filter = new MyFileFilter();
    chooser.setFileFilter(filter);
    chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
    int returnVal = chooser.showOpenDialog(this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {              
      System.out.println(chooser.getCurrentDirectory());
    }

  • How can I back up only selected files using Time Machine?

    I'm a graphic designer, I use a number of Time Capsules to periodically back up my entire computer. But I also want to set up another Time Capsule (bus powered external hard drive) that will continually run as I work and only back up a single folder and all it's sub folders - in this case a folder called 'Client Files'.
    QUESTION: How do I use Time Machine to back up only my 'Client Files' folder and all it's sub folders?

    Frankly, this is probably not worth the time and trouble that it will take to set it up.
    Time Machine backs up your entire Mac by default.
    Time Machine Preferences / Options gives you the ability to Exclude items from backup, so to do what you want, you basically will have to Exclude everything else on the Mac from being backed up.  That is going to be quite a task depending on where your Client Files folder resides and you have your Finder files set up.
    It will not be that difficult to Exclude major folders..... things like Applicatons, Pictures, Music, Documents, etc.....but to get to the point where you want may not be that easy.
    Take a look at things by opening Time Machine Preferences, then click on Options
    Since you will be adding items to be Excluded, you would need to click the + button at the bottom of the window and then navigate to find the general folder that you want to Exclude.
    Unfortunately, you cannot simply tell Time Machine to only back up the items that you want.....you have to tell Time Machine what NOT to back up.....which is going to be most of your Mac.
    And.....whatever you set up in Time Machine /Options to be Excluded will apply to all backups to all Time Capsules.  You cannot specify what is Excluded on one Time Capsule and not another. It's all or nothing. Not what you want to do, I am sure.
    Good luck 

  • How to allow user to select pdf file on local machine and populate field with file name only

    Folks,
    I have a project requirement that I am stumped on.  I am admittedly a novice, so forgive questions that may seem obvious.
    My requirement is a form running on a client system where the user can click a button and select a PDF file name from a PDF on their local machine and then populate a form field with that file path & filename.  The file names vary between all machines, so there is no static list.  Note that the PDF is not embedded, nothing is executed, I simply need the file name.
    There are several of these on a form (20+), so manual name entry is too error prone.   I would like to use a 'browse' type dialog, but can not figure out how to implement it.
    I've looked at app.browseForFile, but the users can not install a javascript file in their adobe folder or any other files;  the functionality has to be integral with the original PDF. 
    Functionally, this is no different from the image object file browse, except that I need a PDF instead of an image file, so there doesn't seem like there should be a security issue that is any different from those surrounding the image object.
    I've been stumped on this for the entire week, and I have a deadline rapidly approaching, so any examples or suggestions (please remember I'm a novice) would be greatly appreciated! 

    Thanks for the reply Paul - do you have any sample code of how to attach the PDF?  Or how the user can select a PDF to open?  I might be able to attach it, retrieve the file name, and then un-attach it.
    Alternatively, do you know how to retrieve the file name from the imagePath object?  It will let you select PDF files, but I can't find info on how to retrieve the file name.   It should be the way you would retrieve the file name for an image.
    As a novice in this, thanks for your help and patience!

  • I have multiple libraries on an external drive. Somehow all the iTunes library files i.e. iTunes Library.itl, xml, itdb, Media folder, etc disappeared! Only the music files remain. Now when I start iTunes w/option it can't find any of the old libraries!

    Help! I 'm using an old G4 powerbook, Mac OSX 10.5.8, iTunes ver 10. I have multiple iTunes libraries on an external drive. Everything was fine for a while, then all of the iTunes library files, i.e. iTunes Library.itl, xml, itdb, artwork folder, Media folder, etc mysteriously disappeared! Only the music files remain (thank god) So now when I start iTunes w/option key to choose a library, I can't choose any of them because iTunes won't recognize them. Because all the library stuff is missing. So can I re-create the library files? (I don't care if I lose my ratings)
    Or should I create a new empty library on the external drive, then manually move all the music files to the Media folder in the new library?
    I tried some stupid ideas like creating a new library just to start iTunes, then going into prefs and advanced, then under iTunes Media folder location, selecting the location of the old library on the external, to see if iTunes would then find all the music which is still there, but no workee.
    I'm out of ideas, and I searched the archives.
    Help! anyone?
    Scott

    I don't know if this is me adding files to iTunes when the external wasn't connected
    it is.
    is it OK to just keep deleting that library on the Air?
    i wouldn't - at least not until i
    mount the external
    point iTunes media folder location back to the external via preferences > advanced
    consolidate my library via file > library > organize library
    The ntfs hasn't seem to be causing any problems, but I've always wanted to know.
    in order for your Mac to write to NTFS drives, it needs some help by installing e.g. the NTFS 3G driver. apparently that or something similar is installed on your Mac already. preferably, it would be formatted for Mac but then windows machines would need to have e.g. MacDrive installed to recognize the drive.

  • Auto selection of file from folder during uploading??

    Hi all friends,
    Iam facing with one problem I am developing one uploading software for that i have used swing and servlet.Now my problem is i want to give auto selection of file from one folder means user just copy the files from any computer on network and paste it in predefind folder.And when they click on upload button it should start uploading of file one by one and after completion of uploading it move that file into another folder one by one.Now my software doing it perfectly but if user copy and paste any file in that predifined folder from network computer during uploading then they have to click upload button again after completion of first queue of files(for example if user first copy 10 files and start uploading and inbetween uploading of that 10 files if user copy another 10 files from network computer then they have to click on upload button again after completion of uploading of first 10 files).But my user requirement is they want to click on upload button once only at the time of starting my application and my application automatically select the file one by one from folder and send it to destination.Means if they copy the file from network machine inbetween uploading or any other user from network send file in that folder then my application should select those file automatically and start uploading means they don't want to click on upload button again.Can any one plz guide how I can slove this problem.Below r my codes:-
    Upload.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    try {
    suspendflag=true;
    Resume.setEnabled(false);
    Suspend.setEnabled(false);
    dest=frame.m_txtURL.getText();
    File ff=new File("d:\\DTMS\\Upload");
    File[] files = ff.listFiles();
    fileList = new Vector();
    if(files == null)
    textArea.append("There is no file");
    return;
    else
    for (int j = 0 ; j< files.length ; j++)
    fileList.add(files[j]);
    java.util.Collections.sort(fileList, new FileComp());//sorting by size
    new Thread(new Runnable() {
    public void run(){
    for (int k = 0; k < fileList.size(); k++)//loop for queue {
    File fname = (File)fileList.get(k);
    String str=fname.getName();
    log("Destination:" +" "+ dest);
    log("Uploading Progress\nPlease Wait....");
    result=doPost(fname,dest);//method for read file & send to servlet
    String str2="Transfer apparently failed.";
    String str3=result;
    if(str2.equals(str3)){
    Error(result);
    else if(suspendflag==true){
    File newfile =new File("d:\\DTMS\\Archives\\"+str);
    fname.renameTo(newfile);
    log("File" +" "+ str+" "+"Upload Completed !");
    else if(suspendflag==false){
    Error("** Transfer Suspended**");
    }).start();
    }catch(Exception exp)
    Error("Error : " + exp.toString());
    Regards
    Bikash

    Hi Chandan,
                        All the multiselection files are stored in it_tab( i:e file_table in method). you need to loop the every record to upload the data for selected files. please check the code Below...
    DATA: file_str1 type string.
    data: it_tab TYPE STANDARD TABLE OF file_table,
           wa_tab TYPE file_table,
           lw_file LIKE LINE OF it_tab,
           gd_subrc TYPE i.
    SELECTION-SCREEN begin of block blk with frame title text-100.
    SELECTION-SCREEN SKIP 2.
    parameters : p_file like rlgrap-filename .
    SELECTION-SCREEN end of block blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
    EXPORTING
    window_title = 'Select only Text File'
    default_filename = '.azt'
    multiselection = 'X'
    CHANGING
    file_table = it_tab
    rc = gd_subrc.
    *READ TABLE it_tab INTO lw_file INDEX 1.
    *p_file = lw_file-FILENAME.
    Start-of-Selection.
    loop at it_tab INTO wa_tab.
       file_str1 = wa_tab-FILENAME.
    CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
         filename                      = file_str1
    *    filename                      = '\\10.10.1.92\Volume_1\_projekte\Zeiterfassung-SAP\test.azt'
       tables
         data_tab                      = it_string
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.

  • How do you select multiple files to drag

    How do you select multiple files to drag from one folder to another? Is there a command?

    Open the folder which has the contents you want to transfer.  Press COMMAND 'A' and then all of the data should be highlited in blue.  Drag it to the new folder.
    If only certain files are to be transferred, then you have to select them (COMMAND 'A')  individually and the drag them as a group to the new location.
    Ciao.

  • How do I select multiple files for download at one time?

    I'm trying to batch download 24 files at one time. Firefox will only let me select one file at a time for download. Is there a way around this?

    try flash got and DTA plugins

Maybe you are looking for

  • Error message when trying to view PDF files online

    When attempting to view pdf files I get the following error message: There is a problem with adobe acrobat/reader. If it is running, please exit and try again. (507:507) Per instructions found in the forum, I have reinstalled and made sure that the b

  • All my notes have disappeared, how do I get them back?

    Hello,  I have just spent 2 days at a conference making notes using "notes", I go to look at them this morning and any note made after May 8th this year have disappeared - Help!!

  • FM and events

    what are the function module nad events are generally used in reports

  • User Device Affinity PXE Setting

    In the settings for PXE on a DP, there is an option for user device affinity with three possible choices.  Do not use UDA, use UDA with manual approval or use UDA with automatic approval.  What exactly do these settings do?  The TechNet info is a bit

  • Java.lang.OutOfMemoryError(Native Method)

    Hello Everybody, We hava a java.lang.OutOfMemoryError,the problem weblogic server installed in windows 2003 x64,weblogic version 9.2 MP1,sun jdk 1.5.0_22 32bit,the memory configuration below: set MEM_ARGS=-server -Xms1024m -Xmx1024m -verbose:gc -Xlog