>I have a difficult time getting our BBEdit users to change the
>behavior of their windows so I am trying to work with the
>application's defaults. i do target documents whenever i can,
>but i have had difficulty figuring out how to iterate through
>all the documents in a project, since "item" is not supported.
Consulting the scripting dictionary :-), you'll see:
project document n [inh. document > item] : a BBEdit
project document
elements
contains project items, project collections.
and
window n [inh. item] : an open window
elements
contains texts, documents; contained by application.
Projects don't contain documents, because projects are an
organizational construct on disk; however, the application
contains open documents, and each window (including project
windows) contains its own list of open documents as well.
But this is all guesswork, since I haven't seen your script nor
do I know what you're trying to accomplish.