Thanks very much Dan.
I’ve only ever worked with VBA before so appreciate your patience.
Couple of related follow up questions if that’s ok:
Firstly, could I write the script in a new text document and then save it with the .jsx file extension?
Secondly, There’s around 30 x dropdown menus who’s menu items are based on the names of the layers in a particular comp. When I make changes to this comp, (eg. add another layer), I need to update the menu items in all the dropdown lists to reflect the changes. So would I need to re-execute the script every time I updated this comp? Is there perhaps an event that is fired (such as ‘onCompChange’) which I could take advantage of to automatically run the script again in the background?