Profile: E dixon (Reikon)
Moderator | |
151 comments | |
26 xtras |
Latest comments
# by Reikon on 12/31/05 at 11:51:42
/aitc
If that doesn't work, get back to me and I'll have to try and fix the script.
If that doesn't work, get back to me and I'll have to try and fix the script.
# by Reikon on 11/25/05 at 05:16:10
Nah... 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/'
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/'
# by Reikon on 11/24/05 at 14:52:32
To 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\""
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 Reikon on 04/03/06 at 23:40:52