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


Click here to return to the 'Set iChat status message and icon to iTunes song' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set iChat status message and icon to iTunes song
Authored by: DaMacGuy on Jul 14, '04 11:24:26PM
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...
"cwaldrip:Pictures:me.gif"

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?

---
-DaMacGuy

[ Reply to This | # ]

Set iChat status message and icon to iTunes song
Authored by: ngb on Jul 15, '04 02:05:13PM
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:

set picName to "me.gif"
set picPath to path to Pictures folder as text
set f to open for access file (picPath & picName)
close f
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.

[ Reply to This | # ]