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

Click here to return to the 'Perl solution' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Perl solution
Authored by: robh on Mar 20, '01 10:20:54AM

hold off using my script. After using it a few times it stops working - the kill signal to restart the Desktop process will eventually fail with the desktop error 'The system has detected a minor problem and repaired it. Some of your preferences may have changed'.

Anyone know of a way to talk to the Desktop (aka Finder) ?. I did some research into Applescript but couldn't locate anything that'd tell the process to refresh the root window. It's possible to communicate with Desktop with this ...
/usr/bin/osascript 'tell application "Desktop" to XXXX'
but I can't work out what instruction (XXXX) to give it.

I also prefer the other poster's suggestion of changing the picture file instead of the .finder prefs. It's easy to change my Perl script to do that, but there's still a need to find a way to tell Desktop to do the refresh.

[ Reply to This | # ]