Can this bit of applescript be made simpler?
Although this is part of the script I am trying to make the script thinner so it makes sense later on.
There are a lot more lines to be added, can I make this simpler?
Many Thanks
Matt
set BootsSet to {"Boots", 1196, 1300}
set DPSet to {"DP", 1000, 1360}
set GlueSet to {"Glue", 1020, 1530}
set RevivalSet to {"Revival", 1500, 1500}
set WeSet to {"WE", 1500, 1500}
--and so on....
if brandName is in {"Boots"} or brandID is in {"BO22"} then
set brandgroup to BootsSet
else if brandName is in {"DP"} or brandID is in {"DJ30", "RA30", "DV11", "DJ11"} then
set brandgroup to DPSet
else if brandName is in {"Glue"} or brandID is in {"GW59"} then
set brandgroup to GlueSet
else if brandName is in {"Revivial"} or brandID is in {"RV47"} then
set brandgroup to RevivialSet
else if brandName is in {"WE"} or brandID is in {"WE57"} then
set brandgroup to WeSet
--and so on...
end if
Mac Pro, OS X Mavericks (10.9)