Multiple file types in sUser- GetFileDialog() ?

I'm using the GetFileDialog function of the AIUser suite.
I'd like three options in the file type popup below the file list (Labeled "Enable:"), such as:
All Recognized files types ("jpg", "jpeg", "gif")
JPEG files ("jpg", "jpeg"")
GIF filess ("gif")
But I can only make it work with one extension per item in the popup.
Hence in the example below, only filters[1] and filters[2] work.
static bool
PickImageFile( ai::FilePath &filePath)
    AIPlatformFileDlgOpts options;
#ifdef MAC_ENV
    const short ftCount = 3;
    AIPlatformFileDlgOpts::PopupFilter filters[ftCount];
    //All recognized types
    filters[0].fDesc = ai::UnicodeString("All Recognized Files");
    filters[0].fExtension = ai::UnicodeString("jpg gif");           // << WHAT TO SPECIFY HERE ?
    filters[0].fCreatorType.creator = '????';
    filters[0].fCreatorType.type = '????';
    // ESRI Shape file
    filters[1].fDesc = ai::UnicodeString("JPEG Image (jpg)");
    filters[1].fExtension = ai::UnicodeString("jpg");
    filters[1].fCreatorType.creator = '????';
    filters[1].fCreatorType.type = '????';
    // Ocad Files Template Files
    filters[2].fDesc = ai::UnicodeString("GIF Image (gif)");
    filters[2].fExtension = ai::UnicodeString("gif");
    filters[2].fCreatorType.creator = '????';
    filters[2].fCreatorType.type = '????';
    options.SetFilterArray(filters, ftCount);
#endif
    AIErr result = sUser->GetFileDialog( ai::UnicodeString( "Import Image"),
                    &options, true, filePath);
    return (result == 0);
Anyone knowing the trick?

In looking at the Windows AddFilter function, patterns are separated with semi-colons, such as "*.jpg;*.jpeg".  I don't have a Mac so I can't test this out though.

Similar Messages

  • Ipad 4: how do I attach multiple file types to an email?

    Hello,
    I have seen multiple threads on this topic saying you can only do attachments in an email (other than photos or videos) by going to the app that holds the file and emailing it from there (ex: go to adobe reader or ibooks to email a PDF). This work around seemed sufficient for some people but I have need to attach a JPG, PDF and .doc to a single email. How do I do this within the ipad's built in email app? Is this impossible and if so are there other free email apps that someone can reccmmend?
    I find the ability to only email files from within its parent app to be cumbersome and not in keeping with Apple's style of making one's life easier and more efficient. In fact this seems woefully backward and goes back to the early days of computing. I get it that emailing from within a particular app is necessary but so is the ability to attach multiple file types from within the email app. :-(
    So frustrated!!

    The GoodReader App can manage files and create emails consisting of multiple files types.
    See here: https://itunes.apple.com/us/app/goodreader-4/id777310222?mt=8

  • BPEL Process with multiple file types using one FTP adapter is not working

    i created a bpel process which will fetch the files from remote location using FTP adapter.
    Now the process works for only one format or file type like *.xls.
    How can i use more than one file format in one FTP adapter.
    OR
    is there any other way to do it.
    file type assignation is 5th step in FTP adapter configuration.
    i have tried *.xls,*.csv and *.xls;*.csv and *.xls:*.csv by seperating with comman, colon, space... still not working.
    i read the documentation *.* will not work.. for one file format it's working fine.
    looking forward for reply as soon as possible.

    Are you positive that it is not working? I'm not sure how you can use one FTP adapter for multiple file types unless the underlying data is exactly the same format or you are processing it as opaque data. Sometimes when a FTP adapter chokes on a file with a bad structure it doesn't create a BPEL instance, it simply moves the bad file to a separate folder.
    So I assume you are using opaque as the data type instead of using an XSD element?
    That said, I don't think you can put two separate file types in the filter. Is it possible for you to do something like: CommonFileName*.* or do you have similar files with other extensions?
    I know the above probably isn't of much help, but I had so many problems with the FTP adapter and its lack of features that I am writing my own. Unfortunately that is a large undertaking and there isn't any good documentation of JCA resource adapter / BPEL PM integration.

  • How to add list of multiple file types to file type of file dialog box in LabVIEW

    How to add list of multiple file types to file type of file dialog box in LabVIEW?
    In file dialog box there is option to add only one file type,in the list,not by seperating commas,
    regards,
    Naresh.N

    Write the file types in pattern Input string, separated by a semicolon ;
    For example:  *.vi;*.doc;*.jpeg;*.xls
    This should return the set of files with matching extensions
    Message Edited by devchander on 09-10-2008 08:02 AM
    Message Edited by devchander on 09-10-2008 08:03 AM

  • File Select Popup not restricing multiple file types

    I have a Bitmap picture in which I call GetBitmapFromFile right after this popupfile select.  So I want the user to pick one of the folowing filetypes seen below.
    I have the following call
    FileSelectPopup ("", "*.*", "*.tif;*.pcx;*.bmp;*.dib;*.rle;*.ico;*.jpg;*.png;*.wmf;*.emf", "Select picture file", VAL_LOAD_BUTTON, 0, 0, 1, 0,pic_file_name); //Extension Not Required
    But when this is ran, it prompts the user showing all file types and all file types are allowed.
    Doing the following:
    FileSelectPopup ("", 
    "*.tif;*.pcx;*.bmp;*.dib;*.rle;*.ico;*.jpg;*.png;*.wmf;*.emf",
    "*.tif;*.pcx;*.bmp;*.dib;*.rle;*.ico;*.jpg;*.png;*.wmf;*.emf", "Select
    picture file", VAL_LOAD_BUTTON, 0, 0, 1, 0,pic_file_name); //Extension not required
    The prompt shows only those file-types, but the default stays on .emf and the user must select the correct file-type at the bottom they are trying to select.
    If I do the following (with commas and restrict file-extension):
    FileSelectPopup ("", "*.tif;*.pcx;*.bmp;*.dib;*.rle;*.ico;*.jpg;*.png;*.wmf;*.emf", "*.tif,*.pcx,*.bmp,*.dib,*.rle,*.ico,*.jpg,*.png,*.wmf,*.emf", "Select picture file", VAL_LOAD_BUTTON, 0, 1, 1, 0,pic_file_name); //using commas
    It shows the correct files, but when clicking one, it says the file-type must be .emf
    The only workign way I found was to do the last statement, but not restrict the file-extension.  (This would give the user the option to change the file-type)
    What I want is the file-type allowed list to be one of those file-types, only show files with those extensions and not require/allow the user to select which file-type they will choose.
    Can this not be done?

    I see no way of customizing FileSelectPopup the way you want: either you restrict extensions, and you are limited to "Default file spec" contents (in case you put a filetype list in this field, the last one is used, as you already noted) or you allow to change extensions, but the user must choose which one to use an "*.*" is always present.
    I am afraid you will need to post-process operator's choice and prompt again in case of non-allowed extension.
    As an alternative you can use the toolbox path control, which can be tailored the way you want but it isn't as easy for the operator as FileSelectPopup. It iìultimately is a string control with customized features to offer an alternative in selecting files / paths. You can tailor it by doing so:
        SetCtrlVal (panelHandle, PANEL_STRING, "c:\\myDefaultPath");
        errChk (NewPathCtrl (panelHandle, PANEL_STRING, 15, 1));
        SetPathCtrlAttribute (panelHandle, PANEL_STRING, ATTR_PATH_CTRL_FILE_FILTER, "*.bmp;*.ico");
    This control permits you a limited filetype choice but forces the user to more impactive operability to select the desired file.
    There is a sample project that  uses this control in <sampledir>\userint\custctrl\pathctrl.
    Another alternative is the File Browser toolslib control: a customized tree control which can be restricted to multiple file types; it is relatively slow on large file systems -at least at the first execution.
    The control maintains the native context menu of the original tree control: I suppose this can be tailored as in native control but I haven't tested it: if it's possibleit may help the user in finding the correct file to select.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Custom HoverPanel for Multiple File Types Preview

    Hi Everyone,
    We Have a requirement to customize SP2013 Search Results webPart to List down multiple file types (Word, Excel, PowerPoint, PDF, Images, etc). we created our own Design Template for Search Results Item to show managed Properties we require. and we need to
    create a Hover Panel to show the preview of those files. we tried to achieve this, but failed. can anyone please provide us a Solution for this ?
    Thank you!

    Hi  Mohamed,
    According to your description, my understanding is that you want to customize Hover Panel for multiple file type.
    For achieving your demand, you can refer to these blogs:
    http://sharepointfieldnotes.blogspot.com/2012/11/customizing-sharepoint-2013-search.html
    http://yeshagrawal.blogspot.com/2013/06/sharepoint-2013-search-adding-hover.html
    http://blogs.technet.com/b/tothesharepoint/archive/2013/09/17/how-to-display-values-from-custom-managed-properties-in-the-hover-panel-in-sharepoint-server-2013.aspx
    http://www.sharepointnutsandbolts.com/2014/01/extending-SP2013-Office-365-search-hover-panel.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support
    Thank you So much Eric,
    The First Link "http://sharepointfieldnotes.blogspot.com/2012/11/customizing-sharepoint-2013-search.html"
    Serves my purpose 100%, but seems like it has 3rd party Product Involved. can i achieve the same Results without using any 3rd Party Tools ?

  • Error when Combining Multiple File Types

    I can't combine multiple file types into one pdf, e.g. .docx and .xlsx files.  The combine feature only seems to be working to combine .pdf and .jpg file types.  An error message stating the below appears. Does anyone have a solution? 
    Thank you. 

    no i can't seem to do that either. the only way I have found to get around it. It's long winded... i export the jpgs from Indesign CS4, then take the jpgs into photoshop CS4 and baiscally resave over the top the of the original jpg without changing any settings, this will then let me combine them in Acrobat Pro 9. for now i will be doing it that way but if anyone knows of another way that would be great.

  • Multiple file types to PDF

    I have a need to combine images and documents into a single PDF. Using automator, I am able to make an application that combines selected images in the finder into a pdf, but it doesn't work on text documents. So, I found this application that adds a text to PDF conversion into automator.
    http://www.ironicwolf.com/2009/05/convert-to-pdf/
    However, I have never gotten this converter to work, and I certainly haven't found any way to combine one automator workflow using both of these at the same time.
    With OSX's ability to save just about any file to a PDF from the print menu, I am thinking it should be easier than what I am doing. After all, it's built into the OS, right? So, am I missing something? Is there an easier way to take multiple documents like .rtf and .doc, with images like .jpg and .tif all at once and combine them into a single PDF? I am not stuck on using an automator application, I would gladly purchase reasonably priced software that is capable of doing this, but I have been looking and have been unable to find anything to do what I need. Of course, I found quite a few applications for windows, but nothing for mac. Any help would be appreciated.

    Wow, thanks. That was extremely helpful, but I have a couple questions.
    First, is there a way to make it print to CUPS without opening the default application for the particular file first? For example, I used a .docx file, and it had to open microsoft word to send the job the print. This makers it very unpredictable to decide how much time the automator application will need to pause. If that file were for example, and adobe illustrator file, it would take an incredible amount of time just for illustrator to open. I don't really anticipate needing to do this a whole lot with anything other than text files and standard image types, but is that the only way for those other files to print? I figured that since OS 10.6 can do a quick look preview on just about any file type I use, that the OS would be able to do this without the application actually opening, but it seems not to be the case. Just wondering.
    The other issue is the only real problem, and it's one that I have had whenever I use automator to make PDFs. It always duplicates the job. So, I am getting a combined pdf, but it has the same file in there 2 or even 3 times.
    In automator, I used:
    get selected finder items
    then
    print finder items
    I have verified that it is printing everything multiple times because I see them going into the CUPS folder twice. Then, the final PDF sometimes even has the same doc or image in it 3 times. I have always had this problem with automator and PDFs, any idea how to solve that?
    Other than that duplication issue, this seems like it will work perfectly! Thanks for the reply here!

  • Script for emailing multiple file types?

    Is there a script that will allow me to place a button on a form, that when clicked, will email the completed form in PDF format as well as in csv, or xml format?
    Thanks!

    Wow, thanks. That was extremely helpful, but I have a couple questions.
    First, is there a way to make it print to CUPS without opening the default application for the particular file first? For example, I used a .docx file, and it had to open microsoft word to send the job the print. This makers it very unpredictable to decide how much time the automator application will need to pause. If that file were for example, and adobe illustrator file, it would take an incredible amount of time just for illustrator to open. I don't really anticipate needing to do this a whole lot with anything other than text files and standard image types, but is that the only way for those other files to print? I figured that since OS 10.6 can do a quick look preview on just about any file type I use, that the OS would be able to do this without the application actually opening, but it seems not to be the case. Just wondering.
    The other issue is the only real problem, and it's one that I have had whenever I use automator to make PDFs. It always duplicates the job. So, I am getting a combined pdf, but it has the same file in there 2 or even 3 times.
    In automator, I used:
    get selected finder items
    then
    print finder items
    I have verified that it is printing everything multiple times because I see them going into the CUPS folder twice. Then, the final PDF sometimes even has the same doc or image in it 3 times. I have always had this problem with automator and PDFs, any idea how to solve that?
    Other than that duplication issue, this seems like it will work perfectly! Thanks for the reply here!

  • Saving multiple file types and sizes

    I design logos using Illustrator. After the design is approved I need to save it in multiple different file types and sizes. (ie. Jpg Hi, Med, Lo; tif; eps; pdf)
    Does anyone know of a script that can do this?
    Thanks,
    Mark

    I don't know of an existing script that does exactly this. You could make one though. Saving an Illustrator document to both 'eps' and 'pdf' formats is very straight forward once you know which options you want. Personally I would use Photoshop to create the required 'jpegs' Illustrator does not export to any given resolution only scaling at 72dpi… Open either the 'eps' or 'pdf' in Photoshop resize and save 3 times.

  • Assigning default applications across multiple file types

    I prefer to use VLC to watch video files, but I keep running into different file types that are still set to have Quicktime open them. Is there any way to quickly set whatever file types I want to open by default with VLC? Or any program for that matter?

    Has anyone noticed that recently this doesn't always seem to work?
    I have a webloc file for BBC Radio 4. (*) I have set the "Open with" to open it with Real Player, rather than Safari (which is set as the default browser). When the file is double clicked, it still opens with Safari.
    This behaviour seems to since 10.5.8, since I had a Hot Key set to open the file and it worked fine before.
    Any ideas?
    (*) this url should display on one line:
    http://www.bbc.co.uk/radio/aod/mainframe.shtml?http://www.bbc.co.uk/radio/aod/ra dio4.shtml?listen

  • Selecting Multiple File Types With Path Control

    My application uses a file path control for the user to specify an output file.  This output file can have two different formats (.csv or .mbf) which is unknown until the user specifies it through the file dialogue.  However, when the user inputs a file name with a .mbf extension (test.mbf, for example), the file path control automatically appends the typed-in name with a .csv extension (test.mbf.csv).  Given that the Pattern field on the control is written like this: *.csv; *.mbf., it seems that the control is simply taking the first file pattern listed and appending it to whatever is typed into the File Name field in the file dialogue box.  Selection Mode is set to "Files" and "New or existing".
    Anyone know a way to smarten up the file control to recognize the appropriate file type?
    Using LabVIEW 8.6.1.
    Thanks!
    Andrew
    Solved!
    Go to Solution.

    Instead of using the file path control, try using the Fial Dialog Express VI. This will bring up the same dialog box but will allow you much more flexibility. Replace your file path control with a button ("Specify Path" in my example code):

  • Multiple files types to save from...

    I'm running into this issue were I can't seem to save a file that is and extra to the required saving type. What should I do?
    - (BOOL)prepareSavePanel:(NSSavePanel*)inSavePanel
    [inSavePanel setDirectory: NSHomeDirectory()];
    [inSavePanel setDelegate: self];
    [inSavePanel setMessage:@"Save your files in the folder pertaing to your project"];
    [inSavePanel setAccessoryView: saveDialogCustomView];
    [inSavePanel setRequiredFileType: @"html"];
    [inSavePanel setNameFieldLabel:@"FILE NAME:"];
    savePanel = inSavePanel;
    return YES;
    [inSavePanel setMessage:@"Save your files in the folder pertaing to your project"];
    [inSavePanel setAccessoryView: saveDialogCustomView];
    [inSavePanel setRequiredFileType: @"css"];
    [inSavePanel setNameFieldLabel:@"FILE NAME:"];
    savePanel = inSavePanel;
    return YES;

    [inSavePanel setMessage:@"Save your files in the folder pertaing to your project"];
    [inSavePanel setAccessoryView: saveDialogCustomView];
    [inSavePanel setRequiredFileType: @"css"];
    [inSavePanel setNameFieldLabel:@"FILE NAME:"];
    savePanel = inSavePanel;
    return YES;
    That part of the code is never going to be reached. It wouldn't happen to be your "css" file that is not being saved would it?

  • 'File type' missing on Filter

    I cannot find the file type section on filter and on some videos I've seen it.  Can someone please help?
    Thank you

    Does the folder you are viewing in Bridge contain more than one file type or only a single file type?  I think File Type only appears in the filter list when the folder(s) being viewed include multiple file types.  For example, if the folder you're viewing in Bridge contains only jpeg files or only any other single file type, then File Type will not be shown in the filter list.

  • How to send the mail with multiple file attachments ?

    Sending mails with multiple files as attachments.

    You need to start from the app, assuming that it has an email function, that contains the files that you want to send as attachments. The Photos app allows you to send up to 5 photos on the same email, but if you want to send multiple file types then you need an app that supports all those file types. I use the GoodReader app which supports quite a few document/file types (e.g. PDF, Excel, Word, pictures), and from that I can select multiple files (including different types) and attach them to the same email.

Maybe you are looking for