I hereby claim:
- I am peterwooley on github.
- I am peterwooley (https://keybase.io/peterwooley) on keybase.
- I have a public key whose fingerprint is C4AB 79F6 EC45 689B 13F1 B335 47A1 7F4E 409B 1956
To claim this, I am signing this object:
Delivered-To: [email protected] | |
Received: by 10.64.126.201 with SMTP id na9csp32238ieb; | |
Thu, 17 Jan 2013 09:43:20 -0800 (PST) | |
X-Received: by 10.68.234.167 with SMTP id uf7mr15749962pbc.20.1358444599558; | |
Thu, 17 Jan 2013 09:43:19 -0800 (PST) | |
Return-Path: <[email protected]> | |
Received: from barracuda.tri-ad.com (mail.tri-ad.com. [207.7.103.198]) | |
by mx.google.com with ESMTPS id w3si2423844pbz.78.2013.01.17.09.43.19 | |
(version=TLSv1 cipher=RC4-SHA bits=128/128); | |
Thu, 17 Jan 2013 09:43:19 -0800 (PST) |
I hereby claim:
To claim this, I am signing this object:
function main() { | |
if (app.documents.length) { | |
var outputDir = Folder.selectDialog('Select output folder.', '~'); | |
if (outputDir) { | |
for (var i = 0; i < app.documents.length; i++) { | |
doc = app.documents[i]; |
-- Modified from http://scriptingosx.com/2016/01/build-a-google-translate-service/ | |
on run {input, parameters} | |
set theText to input as string | |
set oldDelims to AppleScript's text item delimiters | |
set AppleScript's text item delimiters to {return & linefeed, return, linefeed, " | |
", character id 8233, character id 8232} | |
-- list of line break chars from http://stackoverflow.com/questions/12546253/how-to-replace-n-in-applescript#12546965 | |
set splitText to text items of theText | |
set AppleScript's text item delimiters to {space} | |
set theText to splitText as text |