Prompt Selection Dialogue

Has anyone successfully implemented a p.addSelect command? I’ve been trying to get it to work for a while now but not coming right. Any drafts actions using this command already?

The “Repeat Rule” action in the OF Taskpaper Action Group I uploaded works perfectly for me. What are you having trouble with? The action itself has the following prompt:

var p = Prompt.create();

p.title = "Repeat Rule";
p.message = "How would you like the task to repeat?"
p.addSelect("repeatFreq", "Frequency", ["Daily", "Weekly", "Monthly", "Yearly"], [], false);
p.addTextField("repeatInt", "Interval", "", {"keyboard": "numberPad"});

I found my problem, for some reason it wasn’t working with these quotes (“) but only with these (‘). Syntax was highlighting like normal and everything.

I’m trying to create a prompt that lets you choose from predefined tags:

Test Script:

var p = Prompt.create();
p.title = “add tag”;
var arr = Draft.recentTags();
var stags = Draft.tags;
p.message = “test”;
p.addSelect(‘mytags’,‘Select Tags:’, arr, stags, true);
var reslt =;

Found a built in script that I just adapted. Thanks for the help.