You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this is necessarily a dragonfly bug, but I wanted to at least mention it here since it might affect people.
I'm not sure if it's an iTerm issue, or something with Applescript itself, but I noticed that sometimes AppContext fails to match the title of the window, because the value was being set to "msng", which means "missing" according to this.
I logged what this gives in both situations where the iTerm window is not full screen vs when it is full screen.
Next, I tried to use the latest version of py-applescript to see if it made a difference, and it did not.
I also tried to run the Applescript code manually via the editor, and found that it also produced missing values. You can see from these screenshots that there is missing info when the iTerm window is maximized.
I don't know anything about Applescript, but maybe there's a more reliable way to query this kind of information. Or maybe there's just a bug with iTerm. For now I just added a hack that works well enough for my needs.
# windows/darwin_window.pydef_get_window_text(self):
title=self.get_properties().get('pnam')
iftitle!='msng':
returntitlescript='''tell application "iTerm" tell current window get name end tell end tell '''hack=applescript.AppleScript(script).run()
returnhack
I'm on Monterey 12.5. I have another machine with a previous macOS version and it doesn't happen there.
Thanks
The text was updated successfully, but these errors were encountered:
Hello Denver,
Thank you for reporting this problem in detail. The cause appears to be
iTerm or macOS itself. I do recall having similar issues with fullscreen
macOS windows in the past though. Do you know if it happens with other
application windows?
Either way, perhaps a more general version of your workaround should be
added to the `_get_window_module' procedure? I'll look into this.
I don't think this is necessarily a dragonfly bug, but I wanted to at least mention it here since it might affect people.
I'm not sure if it's an iTerm issue, or something with Applescript itself, but I noticed that sometimes
AppContext
fails to match the title of the window, because the value was being set to "msng", which means "missing" according to this.I logged what this gives in both situations where the iTerm window is not full screen vs when it is full screen.
Not full Screen
Full Screen (pnam missing)
Next, I tried to use the latest version of py-applescript to see if it made a difference, and it did not.
I also tried to run the Applescript code manually via the editor, and found that it also produced missing values. You can see from these screenshots that there is missing info when the iTerm window is maximized.
I don't know anything about Applescript, but maybe there's a more reliable way to query this kind of information. Or maybe there's just a bug with iTerm. For now I just added a hack that works well enough for my needs.
I'm on Monterey 12.5. I have another machine with a previous macOS version and it doesn't happen there.
Thanks
The text was updated successfully, but these errors were encountered: