Cheers, was on the right lines but missed the "filter:" bit out.
Thanks

On Nov 5, 1:44 am, Austin <[EMAIL PROTECTED]> wrote:
> Hi Chris,
> To filter for all files with extension .txt -
>
>   var desktop = google.gears.factory.create('beta.desktop');
>   desktop.openFiles(function(files) {
>      // do something with files
>   }, {filter: ['.txt']});
>
> Hope it helps,
> Austin
>
> On Tue, Nov 4, 2008 at 5:47 PM, Chris <[EMAIL PROTECTED]> wrote:
>
> > Hi, im not sure if this is a stupid question but im struggling to find
> > a way to use OpenFileOptions class to only allow text files from being
> > selected when desktop.openFiles is used. I search the boards but I
> > cannot find an example anywhere.
>
> > API info is here:
> >http://code.google.com/apis/gears/upcoming/api_desktop.html

Reply via email to