Skip to content

Instantly share code, notes, and snippets.

@dardo82
Last active February 17, 2016 22:57
Show Gist options
  • Save dardo82/bc4cd1ff944fc3a5447c to your computer and use it in GitHub Desktop.
Save dardo82/bc4cd1ff944fc3a5447c to your computer and use it in GitHub Desktop.
Fake wrapper for Dock
repeat while true
try
tell application "System Events"
set frontApp to name of first application process whose frontmost is true
end tell
if (frontApp is equal to "Dummy-Finder") then
tell application "/System/Library/CoreServices/Finder.app" to activate
end if
on error
delay 1
end try
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment