Ideally, I would be able to take a screenshot and paste the image directly into iA Writer. Since iA Writer doesn't store images, however, this is not possible.
In order to not have to manually drag every screenshot into iA Writer, I would like to be able to
- take a screenshot,
- save it in a folder
- copy the file path to clipboard
- paste the file path into iA Writer.
So far, I've changed the default folder for storing Screenshots and added a folder action. I found a script that copies the screenshot to my clipboard as a file. However, I can't figure out how to copy the file path to my clipboard instead, so I can easily paste it into iA Writer. Any ideas? Could there be a better way?
on adding folder items to this_folder after receiving added_items
set the clipboard to (read (last item of added_items) as TIFF picture)
end adding folder items to
set the clipboard to the POSIX path of the last item of added_items
if you want the POSIX pathname of the item, orset the clipboard to the last item of added_items as text
if you want an alias type pathname.