From unknown Tue Apr 14 13:22:44 2026
X-Loop: git-admin@x2go.org
Subject: Bug#39: x2goclient lacks AppleScript scripting support on Mac OS X
Reply-To: Stefan Baur <newsgroups.mail2@stefanbaur.de>, 39@bugs.x2go.org
Resent-From: Stefan Baur <newsgroups.mail2@stefanbaur.de>
Resent-To: x2go-dev@lists.berlios.de
Resent-CC: X2Go Developers <x2go-dev@lists.berlios.de>
X-Loop: git-admin@x2go.org
Resent-Date: Wed, 26 Sep 2012 18:18:02 +0000
Resent-Message-ID: <handler.39.B.13486828628033@bugs.x2go.org>
Resent-Sender: git-admin@x2go.org
X-X2Go-PR-Message: report 39
X-X2Go-PR-Package: x2goclient
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.13486828628033
          (code B); Wed, 26 Sep 2012 18:18:02 +0000
Received: (at submit) by bugs.x2go.org; 26 Sep 2012 18:07:42 +0000
Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8])
	by ymir (Postfix) with ESMTP id 872305DA6B
	for <submit@bugs.x2go.org>; Wed, 26 Sep 2012 20:07:42 +0200 (CEST)
Received: from [192.168.3.3] (HSI-KBW-134-3-205-207.hsi14.kabel-badenwuerttemberg.de [134.3.205.207])
	by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis)
	id 0Lkioe-1TrMle17xc-00aZk2; Wed, 26 Sep 2012 20:07:42 +0200
Message-ID: <5063445D.5050501@stefanbaur.de>
Date: Wed, 26 Sep 2012 20:07:25 +0200
From: Stefan Baur <newsgroups.mail2@stefanbaur.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20120824 Thunderbird/15.0
MIME-Version: 1.0
To: submit@bugs.x2go.org
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V02:K0:dW1PwTg1t22KPCBWv4JgjTyVsDdri4qqwN744TXllLt
 wQvA4okkgAaz2mSSVsj8uVSxl8KVgJH+iRiTVUujhKccGeJXyI
 QSFFIJDZ+Vx0GkOApM8m6rByN/ApW5FZ7DSBAqfE+Uy2+5rs7J
 muUi3Ao6OB0SIe2pjQc18vTkBlIpnMnlEiwZ+QOQdQC9t1yjES
 Zufpj7Jwfq619jASeVnQvZIkqcFKl5zdwF7bPjzjEMP26Jf414
 9x7o8/xQNGpJOtNlA1Tdx8SbF7gYWTi1MG4PaCfCi5u3wF2YdH
 eWyVUgLWac7JjScp7C5S9HFObdieTdeHD5BtbIidIzuW0hIfi0
 BRPl7KfRFwS+vMjg02M3/6IZfoKux1KxfOueV6Mpg

Package: x2goclient
Version: 3.99.2.2
Severity: minor

It is currently impossible to control x2goclient on Mac OS X using 
AppleScript, except for blindly sending keypress commands.

So,

tell application "x2goclient"
     activate
end tell
tell application "x2goclient"
     set miniaturized of window 1 to true
end tell

fails, while

tell application "x2goclient"
         activate
         tell app "system events"
                 keystroke "h" using command down
         end tell
end tell

works *unless* x2goclient is currently busy (e.g. performing a login 
sequence), in which case the command is ignored.

A well-behaved app can be controlled like explained here: 
http://laclefyoshi.blogspot.de/2010/10/google-chrome-ver.html
(drag and drop app icon on AppleScript editor icon; list of available 
properties shows up)

Trying this with x2goclient returns an error message that x2goclient is 
not scriptable.

-Stefan
