The Omni Group

Go Back   The Omni Group Forums > OmniOutliner > OmniOutliner 3 for Mac
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
Script: Copy selected rows as tab-indented (Markdown) plain text outlines Thread Tools Search this Thread Display Modes
Copies the text of selected rows (and their children) in a format suitable for pasting into a plain text outliner and/or Markdown editor.
  1. Copies outlines with tab indents rather than the OO3 clipboard's default multiples of four spaces.
  2. Leaves the lines unbroken by word-wrapping (the default Edit > Copy breaks the lines)


(I have assigned the script to a keystroke using Keyboard Maestro)

--

Last edited by RobTrew; 2012-11-29 at 01:53 AM.. Reason: Ver 2 trims any white space from the left of the OO3 text, to facilitate Markdown parsing
  Reply With Quote
An extended version of the Copy As Markdown script for OO3.
  1. Any column values are copied as FoldingText-style inline @key(value) pairs or child line key : value property pairs. (The latter are used for longer values).
  2. MD bold/italic/combined emphases are captured
  3. Selection logic is improved selecting a single OO3 node will still copy that node and its whole sub-tree, but extended selections will no longer cause duplicated copying.
Attached Files
File Type: zip OO3CopyAsFTMarkdown-021.scpt.zip (65.9 KB, 97 views)
File Type: zip OO3SaveAsFTMarkdown-021.scpt.zip (61.1 KB, 76 views)

Last edited by RobTrew; 2012-11-29 at 03:29 AM..
  Reply With Quote
PS

This Copy As script can be converted to a Save As script by flipping the value of two properties:

Code:
-- PLACE THE FOLDINGTEXT VERSION IN THE CLIPBOARD ?
property pblnSetClipboard : false

-- SAVE TO A FILE ?
property pblnWriteFile : true
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying an OmniGraffle sub-tree as indented text RobTrew OmniGraffle General 0 2013-01-06 04:29 PM
Script: Pasting from FoldingText Markdown to oo3 nesting and columns RobTrew OmniOutliner 3 for Mac 4 2012-12-05 07:39 AM
Script to copy columns (and any selected rows) to new doc RobTrew OmniOutliner 3 for Mac 0 2010-06-07 02:47 AM
New Script - Selected Entourage EMail to Selected OF Task davidsomeone OmniFocus Extras 1 2009-03-06 12:22 PM
Copy as Plain Text? seth OmniWeb General 5 2008-11-24 05:44 AM


All times are GMT -8. The time now is 10:20 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.