Answer File on Mac OS X

Colin Holgate coiin at verizon.net
Thu Nov 28 10:09:41 EST 2013


Both Jacque’s and Bob’s ways work. The one Marty posted happened not to work because the wildcard part overrode the pdf part.

So, “|pdf” (no space), should work, and "PDF Files|pdf” will work too.

Now, the above is using “with”. If you use “of”, then the old file TYPE comes into play. So, this would work:

answer file "Select file to open:" of type "PDF “

(note the space), but it would only show files that had been saved with the OS9 style of Type/Creator information. Any pure OSX PDFs would most likely be grayed out.

This article by Devin Asay has a handy list of the file types:

http://revolution.byu.edu/helps/file-creatorcodes.php





More information about the use-livecode mailing list