Ok that first script did not allow for other possible numbers
set x to {"1905", "1905", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1907", "1908", "1908", "1908"}
set newLIST to {}
set theCNT to count of x
--No image at position 1. Start loop from position 2
repeat with i from 2 to count of x
if item (i - 1) of x is not equal to item i of x and i is less than theCNT then
set end of newLIST to item (i - 1) of x
set end of newLIST to "AIMAGE" & item i of x as text
else if item (i - 1) of x is not equal to item i of x and i is equal to theCNT then
set end of newLIST to item (i - 1) of x
set end of newLIST to "BIMAGE" & item i of x as text
set end of newLIST to item i of x
else if item (i - 1) of x is equal to item i of x and i is equal to theCNT then
set end of newLIST to item (i - 1) of x
set end of newLIST to item i of x
else
set end of newLIST to item i of x
end if
end repeat
newLIST
--{"1905", "1905", "AIMAGE1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "1906", "AIMAGE1907", "1907", "AIMAGE1908", "1908", "1908", "1908"}
There probably is an easier way to do this.
If you have any suggestions let me know