Skip to content

Instantly share code, notes, and snippets.

@RobTrew
RobTrew / set_ft_heading_levels.applescript
Created November 18, 2012 18:52
Script which sets the top N levels of a FoldingText outline to Markdown hash headers
-- Copyright (C) 2012 Robin Trew
--
-- 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
@RobTrew
RobTrew / select_ft_theme.applescript
Created November 18, 2012 15:39
Select FoldingText theme, and restart FoldingText
-- 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:
@RobTrew
RobTrew / make_or_deepen_header.applescript
Created November 16, 2012 13:11
Mark the selected FoldingText line as a heading (or deepen its heading level) – simple script for keyboard assignment
-- Change first selected node to heading,
-- or deepen level if already heading
-- DEV 1.1 Script
property pstrType : "heading"
on run
tell application "FoldingText"
-- CHECK THAT THERE IS A DOCUMENT