Afraid not - you'd need AppleScript and I have little to no knowledge of that.