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

Re: [MacPerl] toolbox gui script crashes MPW Shell



"Matthias Ulrich Neeracher" <neeri@iis.ee.ethz.ch> writes:
>"Thomas R. Kimpton" <tkimpton@maned.com> writes:
>>I am a rabid MPW Shell editor fan... I write all my scripts
>>and use them from MPW Shell.  I have no problems with other
>>scripts, and have even done some other gui scripts. However,
>>here is a script that runs under MacPerl, but crashes MPW
>>Shell.
>
>Hmm, I guess I'll have to add a disclaimer to the docs that running GUI scripts
>with the MPW tool voids your warranty :-)
>
>I might eventually take a closer look at the script you've included, but in
>general, as soon as event management is involved, all bets are off. In
>particular, the MPW tool offers no meaningful support for Mac::Events.
>AppleEvents are sort of supported.
>

[stuff deleted]


What prompted me to start writing the perl script in question,
was a message concerning external editors for MacPerl.  MPW
Shell is such a marvellous editor (in many ways), that I wanted
to show that it could reproduce some of the desirable behavior
of other editors...  Particularly, BBEdit (maybe only the Pro
version) can FTP a file from a server, edit it, and return it
to the server.  Thus, I started the script that crashes MPW.
Eventually I was going to use the Net::FTP module to finish it.
So... the script was meant to run under MPW, open a window to
get parameters for downloading a file from a remote host, and
then download the file.  It would store an URL for uploading
the file, in the resource fork (or perhaps Finder Comment),
and detect the URL for uploading.  

>
>>Also, I'd like to simply build the dialog in ResEdit and
>>load it with the appropriate 'new MacDialog' call. Is the
>>resource fork of the script opened, and "frontmost" so that
>>I can put the dlog in the script, and don't have to worry
>>about resource ID conflicts?
>
>No, as far as I recall, you have to open the resource fork
>explicitly.
>

[stuff deleted]

Having 'DLOG'/'DITL' resources in the script resource fork makes
it easier to edit the dialog visually, rather than having to
change explicit values in the Rect->new() call.  But, I guess
I can open the resource fork, myself.

Tom.
Tom Kimpton
--
Oz:  "So, do you guys steal weapons from the Army a lot?"
Willow:  "Well, we don't have cable, so we have to make our own fun."
-- "Innocence" - Buffy, the Vampire Slayer

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch