Last active
March 24, 2019 08:52
-
-
Save alexjacque/74260faeb5c1aa950f70d4424aebfe24 to your computer and use it in GitHub Desktop.
Convert Figma Web URLs into Figma Desktop URLs
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
-- Turn Figma Web URLs into Figma Desktop URLs | |
-- Only seems to be able to be run when you are actively in | |
-- a text editible field or in a text input mode. ¯\_(ツ)_/¯ | |
on run | |
set foo to (the clipboard as text) | |
set AppleScript's text item delimiters to "https://www.figma.com/" | |
set theTextItems to every text item of foo | |
set AppleScript's text item delimiters to "figma://" | |
set foo to theTextItems as string | |
set AppleScript's text item delimiters to "" | |
set the clipboard to foo | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment