|
|
Set iChat status message and icon to iTunes song
You really should close your file, as leaving it open can cause problems if you try to move it, rename it, or delete it. Also, you've got the entire bit about reading the file in your script twice. In the interest clarity and modularity, consider the following:
The result is that all the calls to iTunes are together and separate from all the calls to iChat, which are also all together. You'll find code reuse and future editing much easier.
Set iChat status message and icon to iTunes song
So, when I put the path to my prefered image why do I get a file not found error. The following line in ScriptEditor is highlighted...
open for access file myPic
And the path for my default buddy image is... I'm assuming (and that could be my problem) that my default buddy image doesn't have to be a jpg like in the example, nor does it need to be in ~/Library/Webserver/. Am I missing something? ---
Set iChat status message and icon to iTunes song
I think the problem is in the path you've defined. You need a full absolute path to the file you wish to open, such as
"Macintosh HD:Users:cwaldrip:Pictures:me.gif". In this case I'm assuming that "cwaldrip" is your home directory.
You could also use the shortcut path to Pictures folder, but that requires a bit of finessing as demonstrated here:
It would be really nice to be able to use reference the file as file "me.gif" of (path to Pictures folder), but Applescript chokes on that.
Set iChat status message and icon to iTunes song
Anyone know why this wouldn't work with iTMS song purchases? The Default iChatStatus script recognizes and reports those songs, but this script does not. It is nice on the non-iTMS songs. |
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.09 seconds |
|