You should have quotes around the view certificate phrase. I suggest using stringContains for your test. The chunk may not be formatted exactly as "view certificate". I would write: let test = getChunk () if stringContains (test == "view certificate" then ----- Original Message ----- From: "mark" <marktorgerson@xxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Saturday, March 10, 2012 6:28 PM Subject: [jawsscripts] What Am I doing wrong on this script? > Hi > One of the servers I receive mail from sets of a message whenever I > open my E-Mail program. I know the server is safe to use. So, I always > close > the message. It seems to me that I should be able to create a script that > runs automatically and closes the message for me. However, the following > script I wrote refuses to compile. What am I doing wrong? > If GetChunk () == View Certificate... then > {alt+y} > EndIf > Any thoughts are appreciated. > > God bless, > Mark Torgerson > God Loves you! > You can visit my website at: > <http://christiantraditions.info> http://christiantraditions.info > Please visit my blog at: > <http://christian-traditions.blogspot.com> > http://christian-traditions.blogspot.com > > > __________� > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > __________� View the list's information and change your settings at //www.freelists.org/list/jawsscripts