fortune |
|
Submitted By Andrew A. (cowgomoo) |
Descriptionfortune is an AppleScript that inserts a random fortune into your IM conversation. It contains the following modules:
Note: By default, the %_runfortune and %_pickfortune scripts look for the fortune program in /sw/bin/fortune , its location if you install it via fink. If you installed fortune in another location, you can change where the script looks by navigating to ~/Library/Application Support/Adium 2.0/Scripts , control-clicking (or right-clicking) on fortune.AdiumScripts, choosing Show Package Contents, then navigating into Contents/Resources . You will see a text file called prefs . To change where the script looks, open this file in your preferred text editor, put the path to your instance of fortune on the top line (you can delete the rest of the text if you wish), save the file, and you're good to go.If you're unsure where your instance of fortune is, follow the instructions in the file, the important part of which is to run which fortune in the Terminal. It'll show you the full path to fortune . That's the path you want to put in the file.
ChangesVersion 1.4.1
Version 1.4
Version 1.3a
Version 1.3
Version 1.2
Version 1.1
Version 1.0
CommentsYou can reply to individual comments by clicking the "Reply" link next to each. # by Matt on 01/12/05 at 22:36:59I liked it mostly, but I had to change the fortune so it wouldn't send offensive fortunes. I was quite embarrased when it sent an emabarrasing fortune to someone I knew (that is run fortune instead of fortune -as)
# by on 01/12/05 at 23:09:12FYI to use /pickfortune you must include the brackets..
i.e '/pickfortune{simpsons}' - assuming you have the simpsons fortune file in /sw/share/fortunes/ # by zaudragon on 01/25/05 at 06:52:17Please don't hard code things! Say "'/sw/share/fortunes' is the default" and then give instructions on how to change it
# by on 04/20/05 at 23:46:37Using the fortune program from fink, I'm getting error messages saying that my away message is too long. The default fortune command should limit messages to 1000 characters.
# by on 05/05/05 at 09:04:59Any idea on how i can run this on a periodic interval. I mean if i want to put it in my away name but change it every 5 minutes.
# by zaudragon on 10/05/05 at 19:31:07Jim: that would be very elaborate like my Ramdam++ and RandIcons scripts. That was some nasty code too…
# by loadedsith on 02/07/08 at 07:11:47I love it, i used to run this as my away on gaim when i was running various flavors of linux
To get the command line running i downloaded and followed the directions to install: http://www.vushta.com/fortune/ Then ran these 3 commands in terminal.app: mkdir /sw mkdir /sw/bin ln -s /usr/bin/fortune /sw/bin/ # by cowgomoo on 05/02/08 at 06:02:31Thanks for the endorsement, loadedsith. Just a note that you can change where the script looks for your fortune binary. Inside the actual AdiumScripts bundle is a text file called prefs. the first line of that text file is the path name of your fortune install. so if you change that, there's no need for empty folder structures or symlinks.
Post a New CommentYou must be logged in to post comments. |
# by on 09/09/04 at 02:25:02