Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Place text above Fortune Signature ...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Place text above Fortune Signature ...
Authored by: keyizm on May 09, '04 05:08:50PM

does anyone know how to modify the original posted script to include text above the inserted Fortune quote? I'd like it to look something like this:

************************************************************
Name
E-mail: xxx
AIM: xxx
MSN: xxx
Yahoo: xxx

Quote:
The sooner you make your first 5000 mistakes, the sooner you will be
able to correct them.
-- Nicolaides

i'm not AppleScript savvy so any help would be greatly appreciated, thanks!



[ Reply to This | # ]
Place text above Fortune Signature ...
Authored by: jms1 on May 09, '04 06:02:00PM
create a shell script like so...
#!/bin/sh

echo <<EOF
========
Name: xxxxx
ICQ: xxxxx
...
EOF

/sw/bin/fortune
make the shell script executable (using "chmod 700 xxx") and change the original applescript to call this shell script instead of calling /sw/bin/fortune directly.

[ Reply to This | # ]
Place text above Fortune Signature ...
Authored by: keyizm on May 10, '04 02:52:32AM

thanks for the advice! for some reason i couldn't get your script to work but i modified it slightly and i was able to get this version to work:

#!/bin/sh

echo "
************************************************************
Jon Doe
E-mail: xxx
AIM: xxx
MSN: xxx
Yahoo: xxx

Quote:"

/sw/bin/fortune



[ Reply to This | # ]
Place text above Fortune Signature ...
Authored by: GlowingApple on Mar 15, '06 11:41:31AM

I believe the previous script needs to have 'cat' insted of 'echo', though your method works equally well :)

---
Jayson --When Microsoft asks you, "Where do you want to go today?" tell them "Apple."



[ Reply to This | # ]