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

Re: [MacPerl] Selecting Directories Via Dialog Boxes



At 3:08 PM -0500 2/16/2000, Na'im Tyson wrote:
>To All MacPerlers:
>	I'm creating a script that will take a directory (as an 
>argument) and work upon the files within in it.  However, I would 
>like to add a dialog box that allows me to select the directory of 
>my choice.
>	Already, there exists documentation on using Mac:StandardFile 
>which allows you to select an individual file, but I would like to 
>do this on a directory level.
>	Any suggestions would be very much appreciated.
>


try this:

############################################################

#! perl -w

use strict;

require "StandardFile.pl";

my $dir = &StandardFile'GetFolder('Select a folder', "::");

print $dir;

############################################################



# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org