At 02:45 +0100 2002.02.23, Bart Lateur wrote:
>On Fri, 22 Feb 2002 16:18:46 -0800, Andrew O. Mellinger wrote:
>
>>I
>>need to do things in the finder that I can't do in perl so I create
>>simple little Applescripts on the fly and run them.  Things like
>>moving folders, get disk names, renaming items, etc.
>
>Moving folders: module File::Copy -> move, or just rename()
>Get disk names: ??? (Gee, my gut feeling tells me something ought to
>work, for example using Mac::Files)
>renaming items: rename()

Yes, all these things can be done.  Volume names is MacPerl::Volumes().  It
returns FSSpecs, but you can do:

   my @vols = map { MacPerl::MakePath($_) } MacPerl::Volumes;

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to