[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Controlling File Visibility and Dialog for Gettinga Folder Path



At 18.12 -0400 1999.07.05, Darryl Tang wrote:
>I'm writing some MacPerl scripts that need a folder path as a variable so
>that I can manipulate the items within the folder.  I'd like to create a
>dialog similar to:
>
>	 $gfile = StandardGetFile(0,0);
>
>that will allow the user to select a folder instead of a file.  Does anyone
>know how to put a dialog box that will allow the selection of a folder?

  require 'GUSI.ph';
  print MacPerl::Choose(&GUSI::AF_FILE(), 0, "Which folder?",
    "", &GUSI::CHOOSE_DIR);

--
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