Syntax error in Existing (previously Working) Action Script

(imported topic written by SystemAdmin)

Hello -

I authored a fixlet a few months back that handles some security procedures for our Mac OS X endpoints. In January I successfully tested this fixlet and left it where it sits for some time now. Yesterday, I went to use this fixlet and the console is now reporting a have a syntax error in the code. No matter what I try, I cannot seem to make the console happy.

Here’s the affected piece according to the error in the action:

if {(exists logged on user)}
wait /bin/sh -c "su {(name of logged on user)} -c ‘/usr/bin/open -e /etc/lockdown.txt’"
endif

The syntax error and the “Failed” remark in the console is on the line:

if {(exists logged on user)}

I attempted to change this to {(exists current user)} with the same result with the action reporting a “failed” and syntax error at that line.

Interestingly, I have a inverse fixlet to this one that has the same code that does not report a syntax error.

When editing the fixlet it does not tell me there are syntax errors, nor does the action debugger tell me there is a problem with that line.

Any ideas of how/why this would have changed in the past few months? This went from a working fixlet to a consistently failing one, and my heads getting tired of being banged off my desk.

thanks,

Ryan