What I would love to be able to do, is the opposite of what this person asked about; I want to ADD the "where from" text (in my case, a URL I could copy-paste from a browser tab) for screenshots I take of genealogical documents online. I realize what I'm asking isn't the intent of this metadata field, but for my own use, it would be extremely useful. If Info Sheet via "get info" (command+I) could accommodate a text-box for this field, that would be surreal, but any alternative method is worth knowing about. The goal is that this could be done very quickly and without too much effort after I copy the URL.
This particular question relates to this question I posted a short while ago, which is far more important; a way to auto-launch Info Sheet after a screenshot is captured, as a reminder, to force me to paste the URL into the Comments box (which isn't the perfect spot for my needs but nevertheless far better than not having the URL at all). Thanks all! I'm a bit of an idiot with code but learn a great deal from all of you.
Best Answer
Along with the information window, a dialog can be put up to get the whereFrom text, with a little AppleScriptObjC (since a shell script has been posted in another answer) to add it. Extending the Automator folder action in my answer to your previous topic, the replacement Run AppleScript action would look something like:
To use the above script by itself, just remove
{input, parameters}
from therun
handler declaration, and replace theinput
variable or set it to your own list of file items, for example from achoose file
dialog.