Everyone,

   Chris:  No I was just running the DoAppleScript in the MacPerl 
context.  (Not even BBEdit->MacPerl context.)

   Thanks!  I'll try implementing what I can with MacPerl specific 
things.  I also use system a bit (a.k.a. ToolServer) for some copies 
and whatnot.

   However, some things have to be driven with AppleScript or at least 
apple events (CodeWarrior & InstallerVise).   I used to use SendAE 
from the system/ToolServer command and was having some problems and 
switched to the DoApppleScript.  I might have to move back to 
system/ToolServer or maybe even the AppleEvents::Simple stuff (has 
anyone used it?) because they are similar.  However, I'm not to good 
at the AEBuilder nomemclature.  I occasionally dig through the 
AEBuilder docs, but I never seem to find anything that is really a 
good tutorial on AEBuilder.   Does anyone have anything?

-Andrew


At 9:31 PM -0500 2/22/02, Chris Nandor wrote:
>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