Action

Drafts 5 Scripting Documentation

Posted by @jtokash, Last update over 5 years ago - Unlisted

Quick access to the scripting documentation wiki

Steps

  • script

    // See online documentation for examples
    // http://drafts5-help.agiletortoise.com/
    
    var urls = {
    	"Home":"https://github.com/agiletortoise/drafts-documentation/wiki",
    	"Action":"https://github.com/agiletortoise/drafts-documentation/wiki/Action",
    	"Alarm":"https://github.com/agiletortoise/drafts-documentation/wiki/Alarm",
    	"App":"https://github.com/agiletortoise/drafts-documentation/wiki/App",
    	"Calendar":"https://github.com/agiletortoise/drafts-documentation/wiki/Calendar",
    	"CallbackURL":"https://github.com/agiletortoise/drafts-documentation/wiki/CallbackURL",
    	"Console":"https://github.com/agiletortoise/drafts-documentation/wiki/Console",
    	"Context":"https://github.com/agiletortoise/drafts-documentation/wiki/Context",
    	"Credential":"https://github.com/agiletortoise/drafts-documentation/wiki/Credential",
    	"Device":"https://github.com/agiletortoise/drafts-documentation/wiki/Device",
    	"Draft":"https://github.com/agiletortoise/drafts-documentation/wiki/Draft",
    	"Dropbox":"https://github.com/agiletortoise/drafts-documentation/wiki/Dropbox",
    	"Editor":"https://github.com/agiletortoise/drafts-documentation/wiki/Editor",
    	"Event":"https://github.com/agiletortoise/drafts-documentation/wiki/Event",
    	"FileManager":"https://github.com/agiletortoise/drafts-documentation/wiki/FileManager",
    	"Global":"https://github.com/agiletortoise/drafts-documentation/wiki/Global",
    	"HTTP":"https://github.com/agiletortoise/drafts-documentation/wiki/HTTP",
    	"Mail":"https://github.com/agiletortoise/drafts-documentation/wiki/Mail",
    	"Message":"https://github.com/agiletortoise/drafts-documentation/wiki/Message",
    	"MultiMarkdown":"https://github.com/agiletortoise/drafts-documentation/wiki/MultiMarkdown",
    	"Prompt":"https://github.com/agiletortoise/drafts-documentation/wiki/Prompt",
    	"Reminder":"https://github.com/agiletortoise/drafts-documentation/wiki/Reminder",
    	"ReminderList":"https://github.com/agiletortoise/drafts-documentation/wiki/ReminderList",
    	"Things":"https://github.com/agiletortoise/drafts-documentation/wiki/Things",
    	"Working with Dates":"https://github.com/agiletortoise/drafts-documentation/wiki/Working-with-Dates"
    };
    
    var p = Prompt.create();
    
    p.title = "Drafts 5";
    p.message = "Scripting documentation index";
    
    for (var name of Object.keys(urls)){
    	p.addButton(name);
    }
    
    var didSelect = p.show();
    
    app.openURL(urls[p.buttonPressed]);
    

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.