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

Re: [MacPerl] How to send a "stop script" signal to MacPerl?



>Joseph A. DiVerdi wrote:
>At this time I am forced to "quit script" day and restart the script
>once every calendar. That's my current work around. I'd like to
>automate that work around by automatically quitting the script
>perhaps by sending a "cmd-." to it/MacPerl using Cron.

If you don't mind your computer restarting, you could keep an eye on the
memory available to MacPerl and have the script shut down the computer
after at certain point (or after a certain period of time).

Perhaps with Applescript...

tell application " Finder "
   activate
   shutdown restart true
end tell

Put a Applescript or MacPerl droplet in the "Startup Items" directory (in
your System folder) that can reboot your MacPerl program when the computer
restarts.


David Seay
http://www.mastercall.com/g-s/



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