Jump to content

Ibz

Member
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Ibz

  1. I'm trying to create the following workflow but I have no idea where to start. Here is what I want to do 1- Copy some Text 2- Copy a URL 3- Hit Hotkey 4- Paste a hyperkink <a href="{clipboard:0}">{clipboard:1}</a> I've this workflow that would paste an image url as a hyper text on hotkey trigger. on alfred_script(q) set rawHTML to "<img src=\"" & q & "\"style='width: 600px'> <br> (<a href=\"" & q & "\">view image larger</a>)" set escapedData to do shell script "echo " & (quoted form of rawHTML) as «class HTML» set the clipboard to escapedData tell application "System Events" to keystroke "v" using command down end alfred_script I cant seem to find a way to access {clipboard:0} or {clipboard:1} inside the script.
×
×
  • Create New...