add addres-list in 6.43.16 and older

In scripts and sheduler stopped working:
/ip firewall address-list add list=Control address=192.168.0.1

How now to solve the problem of adding to the list of specific IP addresses through the sheduler?

Offtopic:
Already very tired of redoing ~ 250 routers, scripts and environments every time a new firmware arrives. It has become much easier to use the old ones and hope that the security holes will not affect you. I suspect that we will use 6.43.16 to the stop, and then we will begin to switch to other equipment.

Have you checked that the address is not already there ?
I have worked on a script to add IPs to the list and if the list was already containing the IP that I was going to add, it didn’t do it and stopped running the script.
In my case I fixed it by removing the address first, then I added them.

Yes, I checked everything.

It works on 6.39.3, but not on 6.43.16 and 6.45.8.

Soon, from a Mikrotik fan, I will turn into a Mikrotik hater …

This works and was just posted some days ago by me. http://forum.mikrotik.com/t/script-for-adding-dns-entries-to-an-address-list-fails/138932/4

{
:local newIP 192.168.0.1
if ([:len [/ip firewall address-list find where address=$newIP list=Control]]=0) do {
	/ip firewall address-list add address=$newIP list=Control
	:put ("added entry: $newIP")
}
}

If IP already exists in an address list, just adding it will fail. Doing a test first, makes all works fine.
Testet in 6.45.8 and 6.47 beta

PS the outer {} is just to make it run when you cut/past to terminal windows.

Jotne, it works, thank you.
v6.43.16

Now I will cry from how many scripts I have to rewrite and from how much more complicated they become.

You are welcome.

This is why I always run scripts from command line wrapped in {} and change :log to :put, to see all what is going on.