To make the sugar syrup, put the sugar and 100ml water in a pan and heat gently, stirring, until the sugar dissolves. Cool. This will make more than you need but will keep in the fridge for a couple of weeks.
Put the lime and apple juice, almond extract and sugar syrup in a cocktail shaker with ice and shake well. Strain into a small coupe glass and serve.