This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Created by: Sean Korzdorfer | |
-- Created on: 06/08/12 17:05:27 | |
-- This script incudes code from an example posted by Rob Trew | |
-- String Library can be obtained at: | |
-- http://applescript.bratis-lover.net/library/string/ | |
-- Any line which contains a path needs to be edited for the users environment | |
-- NB: this could easily be edited to append. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "BBEdit" | |
set _sel to the selection | |
set _lines to lines in selection | |
set tasks_added to {} | |
repeat with _line in _lines | |
if length of _line is not 0 then | |
my makeOFTask(_line as text) | |
set end of tasks_added to _line as text | |
end if | |
end repeat |