The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

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

 
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 02:53 AM.. Reason: Ver 2 trims any white space from the left of the OO3 text, to facilitate Markdown parsing
 
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, 2197 views)
File Type: zip OO3SaveAsFTMarkdown-021.scpt.zip (61.1 KB, 2192 views)

Last edited by RobTrew; 2012-11-29 at 04:29 AM..
 
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
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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


All times are GMT -8. The time now is 12:47 AM.


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