need help please.
how do i declare a reference like: of sheet of window “test”
that i’ve taken from the complete statement below:
click menu item “Quality & Media” of menu of pop up button 1 of sheet of window “test”
to a variable?
i’ve tried declaring it as:
[b]set thePrintWindow to sheet of window "test"[/b]
but it doesn’t seem to work.
all help will be greatly appreciated. thanks
The sheet is actually treated as a window (which it really is), so you don’t need that “of sheet of window “test”” thingie. Just reference your sheet window directly:
click menu item "Quality & Media" of menu of pop up button 1 of window "sheetWindow"
This works, assuming your window (the one you display as sheet) is called “sheetWindow”.
I recently learned a new method for obtaining references automatically. If you want to learn something that will save you a ton of effort and headache read this post.
http://bbs.macscripter.net/viewtopic.php?id=25609