Re: [chimerax-users] error with open :: 'foreach' has no suffix

Hi, I am trying to run a script and want to use foreach ( open script.cxc foreach *.pdb) to iterate through several pdb files in the working directory. I had no issues with running it earlier, but since last few tries, i am getting an error stating that ""'foreach' has no suffix"" I am not able to figure out how to debug this. I am using the latest build of chimerax. I will highly appreciate your suggestions on fixing this. best amith

Hi Amith, That error message indicates to me that the first file name (script.cxc) isn't being recognized as a ChimeraX command script file. So take a hard look at the command you typed and make sure that the suffix for that file is ".cxc" and not something mistyped like ".cxs" or whatnot. --Eric Eric Pettersen UCSF Computer Graphics Lab
On Feb 8, 2022, at 6:25 AM, Rangarajan, Amith via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
This Message Is From an External Sender This message came from outside your organization. Hi,
I am trying to run a script and want to use foreach ( open script.cxc foreach *.pdb) to iterate through several pdb files in the working directory.
I had no issues with running it earlier, but since last few tries, i am getting an error stating that ""'foreach' has no suffix""
I am not able to figure out how to debug this.
I am using the latest build of chimerax.
I will highly appreciate your suggestions on fixing this.
best amith _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu <mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users <https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users>

Dear Eric, Thanks for the response. it is possible that the cxc file was a txt file type( windows) . i will check it. thanks amith ________________________________ From: Eric Pettersen <pett@cgl.ucsf.edu> Sent: Tuesday, February 8, 2022 9:40 AM To: Rangarajan, Amith <Amith.Rangarajan@ucsf.edu> Cc: ChimeraX Users Help <ChimeraX-users@cgl.ucsf.edu> Subject: Re: [chimerax-users] error with open :: 'foreach' has no suffix Hi Amith, That error message indicates to me that the first file name (script.cxc) isn't being recognized as a ChimeraX command script file. So take a hard look at the command you typed and make sure that the suffix for that file is ".cxc" and ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd Hi Amith, That error message indicates to me that the first file name (script.cxc) isn't being recognized as a ChimeraX command script file. So take a hard look at the command you typed and make sure that the suffix for that file is ".cxc" and not something mistyped like ".cxs" or whatnot. --Eric Eric Pettersen UCSF Computer Graphics Lab On Feb 8, 2022, at 6:25 AM, Rangarajan, Amith via ChimeraX-users <chimerax-users@cgl.ucsf.edu<mailto:chimerax-users@cgl.ucsf.edu>> wrote: This Message Is From an External Sender This message came from outside your organization. Hi, I am trying to run a script and want to use foreach ( open script.cxc foreach *.pdb) to iterate through several pdb files in the working directory. I had no issues with running it earlier, but since last few tries, i am getting an error stating that ""'foreach' has no suffix"" I am not able to figure out how to debug this. I am using the latest build of chimerax. I will highly appreciate your suggestions on fixing this. best amith _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu<mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
participants (2)
-
Eric Pettersen
-
Rangarajan, Amith