|
|
forget crontab!
Try this script instead and forget the crontab stuff. Save it as an application and just double click it. It will run in the background without sucking too much processor time. It will update aim about every minute.
-- -- Set AIM Profile to contain current iTunes track -- by Ian Langworth - www.logicallemon.com -- 2/3/2002 - thanks to Rick A. for the idea -- shouts to Rick and Adam F. -- modified by Mark S. aka Embro -- put the contents of your profile between these quotes -- (the track name will go above) property profilebits : " Music makes the world go round " -- this is the prompt that'll precede the track property prompt : "What I'm playing in iTunes right now: " -- ------------------------------------------ repeat set the theTime to (the (current date) + 60) repeat until the (current date) is greater than theTime delay 60 end repeat try tell application "iTunes" set theSong to (artist of current track) & " - " & (name of current track) & "" end tell on error set theSong to "(no song playing)" end try try tell application "AOL Instant Messenger (SM)" set profile to prompt & theSong & return & profilebits end tell end try end repeat
forget crontab!
Ummm... wouldn't the better approach be to create an script application that uses the idle handler? Something like this... |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|