There are some threads here that make it seem that's either impossible, or only doable via AppleScript or perhaps Javascript. Links:
Hope that helps;
-rob.
For more information, see the wiki Searching the Forum for Answers section.