An error occurred while saving the commentZeb commented
Forget below... just found AppleScript. I think it works. Thanks.
As a rank beginner with automator, which automator action did you run that in? Was it Run Shell Script?
When I do that it comes up with an error essentially saying that the tell command wasn't found etc. Have attached the message.