From: james bejon on
Don't know if you're still looking for a solution to this, but I think the following does the job:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/278382

The key step is 'try'-ing a .get('Workbooks', sFILE_NAME), workbooks being the application's collection of open books.