Skip to content

Instantly share code, notes, and snippets.

@voldmar
Last active August 29, 2015 14:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voldmar/7d86ece6f1b37d274767 to your computer and use it in GitHub Desktop.
Save voldmar/7d86ece6f1b37d274767 to your computer and use it in GitHub Desktop.
AppleScript interface to typograf.artlebedev.ru
on ProcessText(sentence)
tell application "http://typograf.artlebedev.ru/webservices/typograf.asmx"
return call soap {method name:"ProcessText", method namespace uri:"http://typograf.artlebedev.ru/webservices/", parameters:{|m:text|:sentence as string, |m:useP|:false as boolean, |m:useBr|:false as boolean, |m:entityType|:3 as integer}, SOAPAction:"http://typograf.artlebedev.ru/webservices/ProcessText"}
end tell
end ProcessText
set answer to ProcessText("миру - мир")
display dialog answer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment