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

Re: [MacPerl] alarm?



On Mon, 5 Feb 1996, ZACHER, THE wrote:

> I tried this script on mac perl. The script accepted my input but did nothing
> after. Is the sleep function part of mac perl? Also how can I make the beep 
> '\a' ?
> 
> #!perl
> print "When to alarm?\n";
> $time = <STDIN>;
> chop ($time);
> 
> sleep ($time);
> 

Perhaps I'm missing something, but what did you expect it to do after 
sleeping?  Without a print statement, or something, it won't do anything...

As far as making sounds, you'll probably want to get an XCMD (HyperCard 
External Command) that will make arbitrary sounds for you.  Check out the 
MacPerl-specific LoadExternals command.

Hope that helps.

John Peterson -- University Networking Services -- Brigham Young University
Internet: John_Peterson@byu.edu                       Phone: (801) 378-5007