Hi folks,
I ma not an experienced AppleScriptor. In fact, on a good day, with a strong wind behind me, I can AppleScript from here to there, but just barely. There are large holes in my ability to comprehend syntax in AS.
In graphicconverter 5.9, i am trying to set up a script to mark the IPTC comment (may also the keyword also in another script). I want this to happen in the browser view where one photograph is selected among others. Therefore the script must include a “get selected” or some iteration of that idea.
I heard from the folks at Lemke about some of it but I am not sure they understand the whole idea (I just sent another update their way I expect to hear back sometime tomorrow).
Mr. Lemke suggested the following:
tell application “GraphicConverter”
set file iptc “Your disk:your subfolder:thefile.jpg” to {“caption”,
“…”, “…”}
end tell
Problem is, this presumes I want it to act on a file somewhere on my drive. And I need to first get the file path name from the selected picture in GC. My humble fumbling follows. No, it is not working. And yes, I really am throwing darts at a dartboard in a dark room. I get the general idea of how AS works, but my following attempt is pretty randomly attempted.
Can anyone please show me how this should actually work - if it actually can work?
I also suggested they add a hot key command in the future so that this could be done in a keystroke (mark the comment as good picture, web picture, bad picture, etc).
try
tell application “GraphicConverter”
set theseFiles to selection of window 1
–set hereitis to path of selection
set file iptc theseFiles to {“caption”, “test”}
end tell
end try
Thanks
David Groover