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

Re: [MacPerl] Two problems



>> >How do you clear the output window in MacPerl everytime you run a script.
>> >I've looked
>> >everywhere but can't find an answer and I'm tired of seeing the results of
>> >my last
>> >run including the errors.
>
>> CMD-A, delete. 8-)
>
>Sorry. I meant is it possible to code it into the script so it does it at
>the beginning
>thereby erasing the previous contents?

Closing the window will do the trick. MacPerl will open it again the next
time you print to STDOUT.

Try writing something like this in your script to reset the window:

&MacPerl'DoAppleScript(<<'END_SCRIPT');
tell application "MacPerl"
        Close Window "MacPerl"
end tell
END_SCRIPT

I don't know any more elegant way around this. Maybe there is something
like 007 for the beep?

hope this helps,

hansmartin




--
/ Hans Martin Lehmann          []  Wiesendangerstr.4          \
| E-Mail: hmlehman@es.unizh.ch []  CH-8003 Zurich/Switzerland |
| Phone: (41 1) 462 18 51      []  Kleegaertenstr. 57         |
\        (41 28) 46 29 75      []  CH-3930 Visp               /