It seems that there is a bug somewhere.
After creating a document saved as “blahblah” I tested different syntax. The only one returning something is :
tell application "Atom"
properties of window 1
end tell
The events log is :
{document:missing value, closeable:true, zoomed:false, class:window, index:1, visible:true, name:“blahblah — ~/Documents”, modal:false, miniaturizable:true, titled:true, id:1276, miniaturized:false, floating:false, resizable:true, bounds:{923, 407, 1947, 1464}, zoomable:true}
You read well,the property document is missing value.
I ran also:
tell application "Atom"
properties of windows
end tell
This time the events log is :
{{document:missing value, closeable:true, zoomed:false, class:window, index:1, visible:true, name:“blahblah — ~/Documents”, modal:false, miniaturizable:true, titled:true, id:1276, miniaturized:false, floating:false, resizable:true, bounds:{1541, 739, 2565, 1796}, zoomable:true}, {document:missing value, closeable:true, zoomed:false, class:window, index:2, visible:false, name:“Atom”, modal:false, miniaturizable:true, titled:true, id:-1, miniaturized:false, floating:false, resizable:true, bounds:{560, 218, 1360, 818}, zoomable:true}}
Not too surprised to see that the 2nd window is described with visible:false because I really don’t see it but at least I see that for both windows, document is missing value.
I guess that you will have to ask the authors about this feature.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) lundi 30 septembre 2019 21:14:05