Created
June 10, 2022 15:19
-
-
Save moyashi/f17472cb2bbee1e44eccf0a804303897 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
tell application "Photos" | |
set sel to selection | |
set cnt to contents of sel | |
class of cnt | |
set pr to properties of item 1 of cnt | |
set loc to location of pr | |
set lat to first item of loc | |
set lon to second item of loc | |
set u to "https://www.google.com/maps/place/" & lat & "," & lon & "/" | |
set the clipboard to u | |
display notification u with title "クリップボードにコピーしました" | |
end tell | |
tell application "System Events" | |
open location u | |
end tell | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment