Might not be an elegant workaround but Lily have this functionality and you can easily use sockets to connect it to Pd.
http://code.google.com/p/lilyapp/
Although it seems it's not developed anymore, some function are stable and usable.
M
but I search with applescript to define the name of safari or firefox or preview window ? do you have idea about this problem ?
b_r
p