Scripting 在ubuntu中以编程方式关闭弹出窗口

Scripting 在ubuntu中以编程方式关闭弹出窗口,scripting,ubuntu,Scripting,Ubuntu,如何在ubuntu中以编程方式关闭弹出窗口 我可以在OSX上使用AppleScript进行操作: tell application "System Events" tell process "SketchUp" set frontmost to true keystroke return end tell end tell 现在我正在Ubuntu(10.10版)上寻找类似的软件。你想安装wmctrl软件包,然后man wmctrl看看如何使用

如何在ubuntu中以编程方式关闭弹出窗口

我可以在OSX上使用AppleScript进行操作:

tell application "System Events"
    tell process "SketchUp"

        set frontmost to true
        keystroke return

    end tell
end tell

现在我正在Ubuntu(10.10版)上寻找类似的软件。

你想安装
wmctrl
软件包,然后
man wmctrl
看看如何使用它来选择窗口并让它们关闭。(我会提供更多细节,但我的Ubuntu虚拟机正在升级到Natty。)


好的,使用我的虚拟机备份,因为Natty和Parallels工具彼此不通信(现在):


默认情况下(没有
-i
),它与窗口标题匹配。

Natty安装成功了吗?想发布更多细节吗?它不再等我整理平行工具了。我确实是先复制了虚拟机,现在就把它带回来,因为我已经决定Natty安装在短期内是不可用的。
jinx:1458 Z$ wmctrl -l
0x03e00037  0 jinx jinx {allbery} [~//lib]
0x03e00027  0 jinx jinx {allbery} [~]
0x03e00042  0 jinx jinx {allbery} [////xkb]
jinx:1459 Z$ wmctrl -c -i 0x03e00042
jinx:1460 Z$ _