在 Mac OS 下将任何窗口移动到屏幕之外

发布于 2024-12-05 12:21:34 字数 260 浏览 2 评论 0原文

我试图隐藏(或移动到屏幕边界之外)任何窗口(我的意思是不属于我的应用程序)。 我尝试使用辅助功能,但不幸的是,窗口的一小部分仍然在屏幕上。

这是我的问题: - 有没有办法使用辅助功能将窗口完全移动到屏幕之外? - 是否有其他方法(Apple Script,...)来实现这一目标?

谢谢!


我也在使用 Lion,并且我很确定它以前可以工作。 我在 10.7 中发现了很多类似的小事情。 苹果似乎推出了更多的改变。

感谢您的试用。

I am trying to hide (or to move outside teh screen bounds) any window (I mean not belonging to my application).
I tried using Accessibility but unfortunately, there is always a small part of the window which is still on the screen.

Here are my questions:
- Is there a way to completly move a window outside the screen using accessibility?
- Is there an alternative way (Apple Script, ...) to achive that?

Thanks!


I am also using Lion and I am quite sure it was working before.
I am discovering a lot of small things like that in 10.7.
Apple have introduced more changes that it seem.

Thanks for your trial.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

多孤肩上扛 2024-12-12 12:21:34

我在文本编辑窗口中尝试了以下代码。这是行不通的。我试图将其移出屏幕的所有 4 个侧面,但都不起作用(正如您所解释的,窗口的一部分始终显示)。我用的是10.7我很确定我可以在 10.6 及更早版本中做到这一点...也许这是 10.7 的事情???

tell application "System Events"
    tell process "TextEdit"
        set theWindows to windows
        repeat with aWindow in theWindows
            tell aWindow
                set currentPosition to position
                set position to {-1000, item 2 of currentPosition}
            end tell
        end repeat
    end tell
end tell

I tried the following code with a TextEdit window. It wouldn't work. I tried to move it off all 4 sides of the screen and none of it worked (as you explained there's always a part of the window showing). I'm using 10.7. I'm pretty sure I could do it in 10.6 and earlier... maybe it's a 10.7 thing???

tell application "System Events"
    tell process "TextEdit"
        set theWindows to windows
        repeat with aWindow in theWindows
            tell aWindow
                set currentPosition to position
                set position to {-1000, item 2 of currentPosition}
            end tell
        end repeat
    end tell
end tell
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文