Joke of the Day |
|
Submitted By Kevin Wojniak (kainjow) |
DescriptionDisplays a joke for each day.Usage: /dailyjoke ChangesRewrote code in PHP... if I can figure out how to call the script locally, it'd work much better.. :)ImagesCommentsYou can reply to individual comments by clicking the "Reply" link next to each. # by Reikon on 11/24/05 at 18:52:32To run a php script locally, do (in applescript) do shell script "/usr/bin/php /path/to/file.php"
an example for your script would be... do shell script "/usr/bin/php \"~/Library/Application Support/Adium 2.0/Scripts/JokeOfTheDay.AdiumScripts/Contents/Resources/JokeOfTheDay.php\"" # by kainjow on 11/25/05 at 00:29:26Ah sweet, thanks. I knew how to run a script, I just didn't know the best way to reference it's path... I guess absolute paths is the only way :)
# by Reikon on 11/25/05 at 09:16:10Nah... In applescript..
set thisVar to path to me set thisVar to quoted POSIX path of thisVar ^^ Quoted POSIX path to the directory that has your script, otherwise it's an alias.. You can remove the quoted portion but it's better to use quoted in case it has spaces, etc. Like if it were on my desktop thisVar would be: '/Users/reikon/Desktop/' Post a New CommentYou must be logged in to post comments. |
# by on 01/03/05 at 07:56:12