Skip to content

Instantly share code, notes, and snippets.

@jake
Created January 17, 2014 17:49
Show Gist options
  • Save jake/8478028 to your computer and use it in GitHub Desktop.
Save jake/8478028 to your computer and use it in GitHub Desktop.
on open theFiles
repeat with aFile in theFiles
if application "Adobe Photoshop CC" is running then
tell application "Adobe Photoshop CC"
open aFile
activate
end tell
else
tell application "Preview" to open aFile
end if
end repeat
end open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment