I've a task in automator that enables me to select files in finder, call the automator tast (it's on my Script menu) and add Spotlight tags to those selected items. It's built thusly:
Get selected Finder items.
Add Spotlight Comments to Finder Items.
The problem with this, though, is that when it's completed it doesn't return focust to the original Finder window, Finder is still focused but not any window. I can find no Automator action that will change focus so I investigated AppleScript.
I've never used AppleScript before, I'm quite new to Macs, I've done absolute minimal C and am conversant with Perl (though I'm no guru). I've Googled developer.apple.com and I found links to Tk stuff... seen that under Linux in the past so not sure what it's doing here, though TK is an abrev. for ToolKit, I dunno. Anyway, I've not been able to find what I was looking for there or elsewhere. What I want is something that selects the previous window.
I thank you for any suggestions.
Get selected Finder items.
Add Spotlight Comments to Finder Items.
The problem with this, though, is that when it's completed it doesn't return focust to the original Finder window, Finder is still focused but not any window. I can find no Automator action that will change focus so I investigated AppleScript.
I've never used AppleScript before, I'm quite new to Macs, I've done absolute minimal C and am conversant with Perl (though I'm no guru). I've Googled developer.apple.com and I found links to Tk stuff... seen that under Linux in the past so not sure what it's doing here, though TK is an abrev. for ToolKit, I dunno. Anyway, I've not been able to find what I was looking for there or elsewhere. What I want is something that selects the previous window.
I thank you for any suggestions.