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


Click here to return to the 'Pass arguments and run GUI AppleScripts via cron' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Pass arguments and run GUI AppleScripts via cron
Authored by: leenoble_uk on Sep 19, '05 10:48:13AM

That should read: the previous submitted script doesn't work for me because of limitations with recurring events, a fault which the author acknowledges and is iCal's fault.

What I've done is made a new folder at ~/Library/Scripts/Folder Action Scripts/Action Folders which houses a new empty folder for each script I want to run from the cron. I have then modified the shell script to hardcode that path so I only need to specify the empty folder name as the first argument. I've been advised it might have been a good idea to set that path as a shell variable to avoid typing it each time. In any case to record any radio stream now all I have to do is use this command


/usr/bin/osaargs Radivo Breakfast http://ms2.captialinteractive.co.uk/xfm_low

...or similar variant. Issuing STOP as the second argument stops the recording so now I have one script to start and stop which is a lot neater.

---
So, I said ... well, I can't actually remember exactly what I said. But it was one of the most enormously cruel and frighteningly witty put downs ever.

[ Reply to This | # ]