Reusable approach to exporting from OF2 to OO4

I would appreciate any help on solving this Apple Scripting issue.

I was attempting to use the apple script created in the post below to export from OF to OO:
(http://forums.omnigroup.com/showthread.php?t=15469&page=2),

but keep getting an this error ( Expected “,” but found identifier. for line)

for this line [set blnContext to ((selected view mode identifier) is not equal to pPROJECT)]

Thanks in advance for any advice.

This issue was solved in this post. Good luck