Jul 3 2008
Contents
 
Introduction
Overview - RECOMMENDED READING FOR NEW ICM USERS
File Menu
Graphics Move Tools
Display Tab
Light Tab
Labels Tab
PDB Search Tab
Meshes Tab
View Menu
Selections
Tables
Local DB
Sequences
Bioinfo Menu
Tools Menu - Xray
Tools Menu - 3D Predict
Tools Menu - Analysis
Tools Menu - Superimpose
Homology and Modelling
Working with Chemistry Tools
Chemsitry Menu
Docking
Ligand Editor
Animations, Slides, & Documents
ActiveICM
Movie Making
Frequently Asked Questions
 FAQ-Install
 FAQ-Hardware
 FAQ-Graphics and Display
 FAQ-Structure
 FAQ-Dock
 FAQ-Cheminformatics
 FAQ-Simulations
 FAQ-Script
  Script
  call _startup
  Dollar Scripts
 Troubleshooting
Tutorial - Graphical Display
Molecular Document
Tutorial - Working with PDB Protein Structures
Tutorial - Working with Sequence Alignments
Tutorial - Ligand Binding Pocket Analysis
Tutorial - Homology and Modeling Tools
Tutorial - Crystallographic Analysis Tools
Tutorial - Working with Chemical Tables
Tutorial - Working with the Molecular Editor
Tutorial - Chemical Searching
Tutorial - Docking and Virtual Ligand Screening
 
Index
PrevICM User's Guide
28.8 FAQ-Script
Next

[ Script | call _startup | Dollar Scripts ]

Are you having problems with an ICM script? See if your question is answered here

28.8.1 How can I write a script in the Graphical User Interface?


  • File/New and select the Script tab.

For more details see the section entitled Writing a Script in GUI

28.8.2 I am having problems with my ICM script when running from the unix command line.


A common problem when running an ICM script from the command line is that people forget to call the startup file and therefore common commands in ICM are not recognized (eg the output says "convertObject: unknown word") The start of your ICM script should look something like this with call _startup included:


#!/usr/bin/icm

call _startup

28.8.3 How do I use the Dollar $ in ICM Scripts?


In ICM you need to use '$' ONLY before string variable which contains the name of the OTHER variable or expression. (that different from Perl)

Using dollar in most other cases won't hurt (e.g: $a (where a is an integer variable) but will have no effect and only will make parsing/execution heavier. For example: a = 1 # the two lines below are equivalent print $a print a

Example of dollar usage:


a = 1
s = "a"
print $s   # will print the content of 'a' variable
#
for i=1,10
  s = "a" + i
  $s = i
endfor

Will create a1,a2,...a10 variable with corresponding values.

So you should consider '$' as a substitution of the content of the string variable after it.


build string "AAA"
s = String( a_ )
print s
$s 


Prev
View Stack
Home
Up
Next
Troubleshooting

Copyright© 1989-2004, Molsoft,LLC - All Rights Reserved.
This document contains proprietary and confidential information of Molsoft, LLC.
The content of this document may not be disclosed to third parties, copied or duplicated in any form,
in whole or in part, without the prior written permission from Molsoft, LLC.