script help

hi all
what wrong in this script plz?

:if ([/interface wireless scan wlan2 find ssid=Adil]) do={/ip proxy access enable [/ip proxy access find comment=1]
}

/interface wireless scan wlan2 find ssid=Adil
line above will not work. I don’t think that wireless scan can be used in scripts successfully.

thanks for reply
I know its dont work
I need one work plz ! so as when scan and find any item for a network do …etc.

Is this still the case in ros5.x?
Remote scan option with print to file is very useful, almost necessary, feature for troubleshooting tool in remote locations…