Hook support for Figma desktop app

Just wanted to share a quick automation / applescript for copying the address link (Command + L) to an item in Figma Desktop. It copies the web address so when the link is opened it opens a browser tab first but then redirects to the Figma app.

set the clipboard to ""
tell application "System Events"
    repeat 10 times
         keystroke "l" using {command down}
        delay 0.1
        set t to (the clipboard as text)
        if t is not missing value and t is not equal to "" then
            exit repeat
        end if
    end repeat
end tell


return t
2 Likes

Thanks for sharing, @SteveMoser !