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


Click here to return to the '10.6: Replace Exposé's blue 'glow' outline effect' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Replace Exposé's blue 'glow' outline effect
Authored by: robg on Apr 21, '10 07:14:41AM
A reader sent in the following AppleScript to automate the process:
global thePath, chosen

-- replace droplet
on open allFiles
  replaceGlow(POSIX path of allFiles)
end open

-- replace handler
on replaceGlow(chosen)
  try
    -- copy files to Dock folder
    set thePath to "/System/Library/CoreServices/Dock.app/Contents/Resources/"
    do shell script ("cp " & chosen & " " & thePath & "expose-window-selection-big.png")
    do shell script ("cp " & chosen & " " & thePath & "expose-window-selection-small.png")
    -- restart dock
    tell application "Dock" to quit
    -- play completion sound
    do shell script "afplay '/System/Library/Sounds/Hero.aiff'"
  on error
    beep
  end try
end replaceGlow

-- run handler
activate
replaceGlow(POSIX path of (choose file default location alias (path to downloads folder as text)))
I haven't tried the script.

-rob.

[ Reply to This | # ]