Automator quit all
I want a script to close all open applications and empty trash.
Applications and Finder behave differently.
Automator 'Utilities' options appear the best bet, so I am focused there.
I am able to quit all applications, but Finder is stubborn
I can close Finder components as a group inside Automator, but combining that group with 'Quit all Applications' The Automator group of scripts fails to close Finder components (Finder window, Get info, and Inspector).
Here's what I have so far.
Group 1: on it's own closes everything but Finder stuff.
Utilities > Quit all applications
Quit all applications
Group 2: this group works well.
Utilities > Run AppleScript
on run {input, parameters}
tell application "Finder"
empty the trash
end tell
delay 1
return input
end run
Group 3: run on its own this works, but not with 'Quit All Applications'.
Utilities > Run AppleScript
on run {input, parameters}
tell application "Finder"
activate
quit
delay 3
tell application "Finder"
activate
end tell
end tell
return input
end run
Group 4: this one works on its own for Finder stuff, but doesn't work with other groups.
Utilities > Run Shell Script
cat
osascript -e 'tell application "Finder" to quit'
Mac Pro, OS X El Capitan (10.11.6), MacBook Pro - iPhone6+ - Power PC