At 08.38 -0500 1999.03.26, Emmanuel. M. Decarie wrote: >I'm sorry to ask again, but every time I tried to deal with this, I get >very frustrated. > >Maybe I missed something, but again I just want to do simple dialogs >interface in MacPerl. > >I want to choose a file with a prompt, I have this piece of code that work >well, but I can't find a way to put a prompt in it saying "Choose a file". >I read the info in MacPerl.pod, but frankly, I don't understand half of >it. > >#!perl >require 'GUSI.ph'; > >$f = MacPerl::Choose(GUSI::AF_FILE(), 0, ""); > >I want to do the same for a folder. > >Please, provide me some code. The best way to select a file from a dialog is using the Mac::StandardFile package, documented fully in the book and with examples in ext/t/Mac/StandardFile/. MacPerl::Choose for getting files is more or less deprecated (though it is still necessary to use it for getting folders). But the GUSI routines for getting files and folders do have full code in t/StandardFile.t and the corresponding lib/StandardFile.pl, and they show how to use the prompt. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org