Tell me lies, sweet little lies
15. März 2006 von Christian Imhorst
Since I wanted my iBook to tell me sweet little things randomly, I wrote the following script:
#!/usr/bin/perl -w use strict; my $user = "$ENV{'USER'}"; my $say = "/usr/bin/say"; my @speak = ("you are the coolest guy on earth.", "I love you so much.", "you look very beautiful today.", "you are so cute."); system ($say, $user, $speak[rand @speak]); |
Copy this script in a file named „sprich“ (that means „speak“ in German), do a
chmod 755 sprich
in the Terminal and run it with
./sprich |
Your iBook or Mac will tell you now all the sweet little lies you have taught him in the script like „I love you so much“ and so on. When you are down maybe this is a way to cheer you up. ;-)
This is just a little fun with the almighty command line (Terminal) of MacOS X. I have found the stuff at machackers.de. Among others you can find things like:
say -v Cellos "Dum dum dum dum dum dum \ dum he he he ho ho ho fa lah lah lah \ lah lah lah fa lah full hoo hoo hoo" |
Just copy and past this in the command line and your Mac will sing for you. And use this command, if you need a recipe for cookies quickly:
cd /usr/share/emacs/21.2/etc && emacs COOKIES |
Geschrieben in English, Programmieren