Created
May 27, 2022 00:01
-
-
Save hkitago/cb5de18c73eea5a87461972cb21dfea8 to your computer and use it in GitHub Desktop.
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
try | |
tell application "BBEdit" to set theFile to file of document 1 | |
tell application "Finder" to open theFile using (path to application "Google Chrome") | |
on error | |
try | |
return theFile | |
on error errorMessage | |
return errorMessage | |
end try | |
end try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment