I guess the question speaks for itself. Does this happen to anyone else, or is it just me? I notice this occurs very often in when I have a script with GUI scripting commands in it. There’s nothing fatal to it, but it is annoying. I’m curious to know if others have this occuring, does anyone know why it’s occurring, and has anyone found a way to avoid this annoyance (while still running the scripts of course)?
if you’re running Leopard, try this…
use EasyFind to locate and delete these 2 files…
com.apple.dock.iconcache
com.apple.dock.db
EasyFind → http://www.versiontracker.com/dyn/moreinfo/macosx/8707
make sure you don’t delete this file…
com.apple.dockfixup.plist
run this in your script editor and restart…
do shell script “killall Dock”
if that doesn’t help you could delete the “com.apple.dock.plist” file.
then you will have to reset-up your Dock - that’s a p.i.t.a
Browser: Safari 528.16
Operating System: Mac OS X (10.5)
Sorry…should have mentioned I was using OS X 10.4. So is it basically just a dock file issue of some sort?
Model: MacBook
AppleScript: 2.1.2
Browser: Safari 525.22
Operating System: Mac OS X (10.4)
Well, that’s my best guess on your problem.
Try running this script - it can’t hurt and it might help.
display dialog "Delete the cache file and refresh the Dock." buttons {"Cancel", "OK"} default button 2
if the button returned of the result is "OK" then
do shell script "rm -rf /Library/Caches/com.apple.dock.iconcache.501"
do shell script "killall Dock"
end if
display dialog "You should restart your Mac. Good luck!" buttons {"OK"} cancel button "OK" default button 1
Tom
Browser: Safari 528.16
Operating System: Mac OS X (10.5)
Similar has happened to me on occasion… and I can’t explain why, but…
My guess is that your script(s) may give focus to System Events (or another specific app) and not return it.
Try activating Finder or some other app (e.g. the app you targeted using GUI commands) at the close of your script.
A shot in the dark only.
Peter B.