workFor() doesnt do any crafting by itself. It sets the timer for the next craft() command and if you reset the timer several times only the last one will have an effect. You can click the question mark [?] button if you want to learn more about scenario functions.
This is what you have to do for food and potions together.
icon(7, 3, 5.0) //food
icon(7, 4, 5.0) //potion
workFor(00:14)
craft(max)
icon(7, 4, 5.0) //potion
workFor(00:14)
craft(max)
repeatChapter(10)
And this is for one hour chapter with repair at the end.
icon(7, 3, 5.0) //food
icon(7, 3, 5.0) //food
icon(7, 4, 5.0) //potion
workFor(00:14)
craft(max)
icon(7, 4, 5.0) //potion
workFor(00:14)
craft(max)
icon(7, 4, 5.0) //potion
workFor(00:14)
craft(max)
icon(7, 4, 5.0) //potion
workFor(00:14)
craft(max)
repair()
repeatChapter(10)