×

VCOO0021

OmniOutliner: Add Enumerated Columns

A set of commands for adding new enumerated columns to the outline. An enumerated column is one whose contents are options are contained in a popup menu.

List Triage • Based upon the Eisenhower Matrix (Wikipedia), this command adds an enumerated column for prioritizing a list of tasks (To-Do’s). The enumerations are: Do, Schedule, Delegate, and Delete

Supportive commands for changing the value of the enumerated column in selected rows:

Scope and Syntax

Language: English (United States 🇺🇸 · Great Britain 🇬🇧 · Australia 🇦🇺 · Canada 🇨🇦)

Scope: OmniOutliner

Command phrase variations (words in [brackets] are optional):

Requirements

Video: List Triage
Based upon the “Eisenhower Matrix” this command adds an enumerated column for prioritizing a list of tasks (To-Do’s).
Video: List Triage
Based upon the “Eisenhower Matrix” this command adds an enumerated column for prioritizing a list of tasks (To-Do’s).

Downloads

Script Code

Here is the script code for the various commands:

Task List Triage

Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. OMNI-AUTOMATION.COM assumes no responsibility with regard to the selection, performance or use of information or products found at third-party websites. OMNI-AUTOMATION.COM provides this only as a convenience to our users. OMNI-AUTOMATION.COM has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and OMNI-AUTOMATION.COM assumes no responsibility in this regard. Please understand that a third-party site is independent from OMNI-AUTOMATION.COM and that OMNI-AUTOMATION.COM has no control over the content on that website. Please contact the vendor for additional information.

Based upon Based upon Asana’s interpretation of the Eisenhower Matrix, this command adds an enumerated column for prioritizing a list of tasks (To-Do’s). The enumerations are: Do, Schedule, Delegate, and Delete

The created column is followed with a second column of checkboxes whose status will indicate whether the item has been processed using the matrix.

Add List Triage Columns


(async () => { try { function createUtterance(textToSpeak){ langCode = Speech.Voice.currentLanguageCode voiceObj = Speech.Voice.withLanguage(langCode) utterance = new Speech.Utterance(textToSpeak) utterance.voice = voiceObj utterance.rate = Speech.Utterance.defaultSpeechRate return utterance } var synthesizer = new Speech.Synthesizer() tree = document.outline editor = document.editors[0] editor.autosizeTopicColumn = true columnTitle = "Action" enumItems = ["Do","Schedule", "Delegate", "Delete"] tree.addColumn( Column.Type.Enumeration, editor.afterColumn(), column => { column.title = columnTitle column.style.set(Style.Attribute.ParagraphAlignment, TextAlignment.Center) enumItems.forEach(item => { column.enumeration.add(item) }) } ) // add checkbox column tree.addColumn( Column.Type.Checkbox, editor.afterColumn(), column => { column.style.set(Style.Attribute.ParagraphAlignment, TextAlignment.Center) } ) utterance = createUtterance("Columns Added.") synthesizer.speakUtterance(utterance) } catch(err){ utterance = createUtterance(err.message) synthesizer.speakUtterance(utterance) //new Alert(err.name, err.message).show() } })();

The following command is one of four for assigning one of the enumerated actions to the currently selected outline rows.

Mark as “Do”


(async () => { try { function createUtterance(textToSpeak){ langCode = Speech.Voice.currentLanguageCode voiceObj = Speech.Voice.withLanguage(langCode) utterance = new Speech.Utterance(textToSpeak) utterance.voice = voiceObj utterance.rate = Speech.Utterance.defaultSpeechRate return utterance } var synthesizer = new Speech.Synthesizer() editor = document.editors[0] tree = document.outline enumColumn = columns.byTitle("Action") if(enumColumn === null){ throw { name: "Missing Column", message: "There is no enumerated column, titled “Action,” in the outline." } } if(enumColumn.type !== Column.Type.Enumeration){ throw { name: "Column Type Error", message: "The column, titled “Action,” is not an enumerated column." } } //["Do","Schedule", "Delegate", "Delete"] memberTitle = "Do" targetMember = enumColumn.enumeration.members.find(member => { return member.name === memberTitle }) if(targetMember === undefined){ throw { name: "Missing Enumeration", message: `The column titled “Action” has no enumeration named ${memberTitle}` } } items = editor.selection.items if(items.length === 0){ throw { name: "Selection Error", message: "Please select one or more rows." } } items.forEach(item => { item.setValueForColumn(targetMember, enumColumn) }) utterance = createUtterance(`Value set as: ${memberTitle}`) synthesizer.speakUtterance(utterance) } catch(err){ console.log(err.name, err.message) utterance = createUtterance(err.message) synthesizer.speakUtterance(utterance) //new Alert(err.name, err.message).show() } })();

Other Examples

The techniques used in the previous voice commands, demonstrating use of the Eisenhower Matrix, can be also be used for other topics, such as tracking status of video or software development projects.

Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. OMNI-AUTOMATION.COM assumes no responsibility with regard to the selection, performance or use of information or products found at third-party websites. OMNI-AUTOMATION.COM provides this only as a convenience to our users. OMNI-AUTOMATION.COM has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and OMNI-AUTOMATION.COM assumes no responsibility in this regard. Please understand that a third-party site is independent from OMNI-AUTOMATION.COM and that OMNI-AUTOMATION.COM has no control over the content on that website. Please contact the vendor for additional information.

Here is an enumeration example for tracking the editing process for video production. It is based upon the article from the Motion Array website: The 5 Stages Of Video Editing

Add Project Status Column (Video Production)


(async () => { try { function createUtterance(textToSpeak){ langCode = Speech.Voice.currentLanguageCode voiceObj = Speech.Voice.withLanguage(langCode) utterance = new Speech.Utterance(textToSpeak) utterance.voice = voiceObj utterance.rate = Speech.Utterance.defaultSpeechRate return utterance } var synthesizer = new Speech.Synthesizer() tree = document.outline editor = document.editors[0] editor.autosizeTopicColumn = true columnTitle = "Project Status" enumItems = ["Logging", "1st Assembly", "Rough Cut", "Fine Cut", "Final Cut"] tree.addColumn( Column.Type.Enumeration, editor.afterColumn(), column => { column.title = columnTitle column.style.set(Style.Attribute.ParagraphAlignment, TextAlignment.Center) enumItems.forEach(item => { column.enumeration.add(item) }) } ) utterance = createUtterance("Column Added") synthesizer.speakUtterance(utterance) } catch(err){ utterance = createUtterance(err.message) synthesizer.speakUtterance(utterance) //new Alert(err.name, err.message).show() } })();

Here is an enumeration example for tracking the development process for software. It is based upon the article from the Blocshop website: The 7 Stages of the Software Development Process

New Project Status Column (Software Development)


(async () => { try { function createUtterance(textToSpeak){ langCode = Speech.Voice.currentLanguageCode voiceObj = Speech.Voice.withLanguage(langCode) utterance = new Speech.Utterance(textToSpeak) utterance.voice = voiceObj utterance.rate = Speech.Utterance.defaultSpeechRate return utterance } var synthesizer = new Speech.Synthesizer() tree = document.outline editor = document.editors[0] editor.autosizeTopicColumn = true columnTitle = "Project Status" enumItems = ["Planning", "Requirements", "Design", "Development", "Testing", "Deployment", "Maintenance"] tree.addColumn( Column.Type.Enumeration, editor.afterColumn(), column => { column.title = columnTitle column.style.set(Style.Attribute.ParagraphAlignment, TextAlignment.Center) enumItems.forEach(item => { column.enumeration.add(item) }) } ) utterance = createUtterance("Column Added") synthesizer.speakUtterance(utterance) } catch(err){ utterance = createUtterance(err.message) synthesizer.speakUtterance(utterance) //new Alert(err.name, err.message).show() } })();

 

 

 

LEGAL

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. OMNI-AUTOMATION.COM assumes no responsibility with regard to the selection, performance or use of information or products found at third-party websites. OMNI-AUTOMATION.COM provides this only as a convenience to our users. OMNI-AUTOMATION.COM has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and OMNI-AUTOMATION.COM assumes no responsibility in this regard. Please understand that a third-party site is independent from OMNI-AUTOMATION.COM and that OMNI-AUTOMATION.COM has no control over the content on that website. Please contact the vendor for additional information.