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

Click here to return to the 'Set iChat status according to physical location' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set iChat status according to physical location
Authored by: moliu on Apr 19, '04 04:57:15AM

actually, I can't get your script to work with cron. I'm using cronnix to run the script. Here's the problem. I saved the script in my doc folder.
I've tried to add the script to the cronnix directly. Nothing happens when it's suppose to run. So I tried to save it as an application with the run only option.
When I double click on the program to run, it runs perfectly. However if it was cronnix running the program as scheduled, it doesn't do anything...

Am I doing something wrong? Do I have to use the prepend "/usr/bin/open" option?

Thanks for you help!

[ Reply to This | # ]
Set iChat status according to physical location
Authored by: jonbauman on Apr 19, '04 11:52:27AM

There are two options if you want to use cron or some other utility to periodically execute the script. Either you can save the script as an application with the Stay Open option not checked, or you can save it as a script. There's no need to check Run Only in either case. That just hides the source and makes the script uneditable. If you save as an application, you can run the script with /usr/bin/open /path/to/application and for the script version, use /usr/bin/osascript /path/to/script.



[ Reply to This | # ]