Advertisement
Guest User

Is a story editor window open?

a guest
Jun 19th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var windows = app.activeDocument.windows,
  2.   nbWindows = windows.length,
  3.   i;
  4. for (i = 0; i < nbWindows; i += 1) {
  5.   if (!windows[i].hasOwnProperty("zoom")) {
  6.     // Let us presume that a window without a zoom method is a story editor window...
  7.     alert("A story editor window is open");
  8.   }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement