Sorry for confusion. I am using Chimera.

 Ibrahim

From: Elaine Meng <meng@cgl.ucsf.edu>
Sent: Friday, June 19, 2020 4:34 PM
To: Moustafa, Ibrahim M. <ria2@psu.edu>
Cc: ChimeraX Users Help <chimerax-users@cgl.ucsf.edu>
Subject: Re: [chimerax-users] ViewDock script
 
Hi Ibrahim,
Are you using Chimera or ChimeraX? 

You sent the question to the ChimeraX mailing list.  If you are using Chimera, should send the question to the chimera-users@cgl.ucsf.edu mailing list.

Best,
Elaine
-----
Elaine C. Meng, Ph.D.                      
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

> On Jun 19, 2020, at 1:31 PM, Moustafa, Ibrahim M. <ria2@psu.edu> wrote:
>
> Hi Eric,
>
> I tried:
> rc("ui tool hide ViewDockX")
>
> but it did not work and gave an error of "ui" unrecognized command.
> I must be missing something!
>
>  Thanks for your help.
>
>  Ibrahim
> From: Eric Pettersen <pett@cgl.ucsf.edu>
> Sent: Friday, June 19, 2020 3:50 PM
> To: Moustafa, Ibrahim M. <ria2@psu.edu>
> Cc: chimerax-users@cgl.ucsf.edu <chimerax-users@cgl.ucsf.edu>
> Subject: Re: [chimerax-users] ViewDock script

> Hi Ibrahim,
> “ui tool hide ViewDockX” will hide all ViewDockX windows.
>
> --Eric
>
> Eric Pettersen
> UCSF Computer Graphics Lab
>
>
>> On Jun 19, 2020, at 11:54 AM, Moustafa, Ibrahim M. <ria2@psu.edu> wrote:
>>
>> Dear All,
>>
>> I'm trying to run ViewDock from a script using the following command in a loop:
>> runCommand("viewdock " + filename + " AutoDock")
>>
>> It works fine. However, the ViewDock window remains opened after reading each file. For large number of files it is not practical to close them manually.
>>
>> Is there a command to close the opened ViewDock windows to add to the script?
>>
>>    Thank you for your help.
>>
>>   Ibrahim
>>
>>
>>
>> _______________________________________________
>> ChimeraX-users mailing list
>> ChimeraX-users@cgl.ucsf.edu
>> Manage subscription:
>> https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplato.cgl.ucsf.edu%2Fmailman%2Flistinfo%2Fchimerax-users&amp;data=02%7C01%7Cria2%40psu.edu%7C28cc67392f294968f05c08d814903572%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637281956888212688&amp;sdata=bJJpQsswuIO1NgkdR4%2FJi2Qg4IL3zvfI5Vt225BNadg%3D&amp;reserved=0
>
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users@cgl.ucsf.edu
> Manage subscription:
> https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplato.cgl.ucsf.edu%2Fmailman%2Flistinfo%2Fchimerax-users&amp;data=02%7C01%7Cria2%40psu.edu%7C28cc67392f294968f05c08d814903572%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637281956888212688&amp;sdata=bJJpQsswuIO1NgkdR4%2FJi2Qg4IL3zvfI5Vt225BNadg%3D&amp;reserved=0