Skip to content

Instantly share code, notes, and snippets.

@alexjacque
Last active March 24, 2019 08:52
Show Gist options
  • Save alexjacque/74260faeb5c1aa950f70d4424aebfe24 to your computer and use it in GitHub Desktop.
Save alexjacque/74260faeb5c1aa950f70d4424aebfe24 to your computer and use it in GitHub Desktop.
Convert Figma Web URLs into Figma Desktop URLs
-- 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