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

Click here to return to the 'Reliably relaunch the Finder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Reliably relaunch the Finder
Authored by: bostmass on Jan 25, '04 12:28:15AM
(* The other option you can do is copy and paste this AppleScript into Script Editor. Then save it in your Script Menu items as a
compiled script. Many times when my Finder craps out, other apps follow its lead. You can also customize it to just focus on the finder.
This script does not target background processes.

tell application "Finder"
    if the (count of processes) is not 0 then
        set visible of every process to true
        --set the_apps to get processes whose visible is true
    end if
    set the the_apps to the name of every process whose visible is true
    activate me
    set my_apps to {}
    set the my_apps to choose from list the_apps with prompt
        "Choose apps to quit. Press command or shift key for multiple selections:" cancel button name "Cancel" OK button name "Ok" with multiple selections allowed
end tell

repeat with anApp in my_apps
    set anApp to quoted form of anApp
    ignoring application responses
            do shell script "killall -c " & anApp
        end try
    end ignoring
end repeat

[ Reply to This | # ]