Created
May 19, 2018 03:28
-
-
Save dylan-chong/265e0011d275672093b877f75d43774b to your computer and use it in GitHub Desktop.
Open Preview.app so that it updates its view on the image then switch back to previous application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
global currentProcess | |
tell application "System Events" | |
--set currentProcess to the name of the first process where it is frontmost | |
set currentProcess to (path to frontmost application as text) | |
end tell | |
activate application "Preview" | |
activate application currentProcess | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on this https://gist.github.com/dylan-chong/d46544fb86e0a0336b82b50c789037ca