

Get the input elements for the date and amount. Make the date into the format required by the web site: month-day-yearĭate = (date.getMonth() + 1) + "-" + date.getDate() + "-" + date.getFullYear() Also, if nothing is in Textwell at all, it assumes today's date and a 1 multiplier.ĭate = new Date(parts.slice(1).join(" ")) Just an amount to multiply today's exchange rate. Get default values: multiplier of 1 and today's date. If no text is selected, get all of the text.

Create the variables for querrying for the exchange rate. Var menuitemUsdThb = document.getElementById('menuitem-usd-thb') Var menuitemThbUsd = document.getElementById('menuitem-thb-usd') Get the menu items to attach the function too. webkit-animation: sweep 1s infinite linear The array of words that should be all upper case always. The array of words that should be lower case always, unless it is the first word Get the string to convert and split it up by spaces. is determined by an upper case word dictionary and a lower case Description: This function takes a string and converts it to title case.
#TEXTWELL DICTATION CODE#
Turn on the Translucent radial and put the following code into the script area: // To create the title case action, create a new action with the title Title Case.

With code selected, you can execute the code with the button at the bottom of the dialogue. The button above the edit area allows you to set what you will edit: the code or the description of the code. Too many hot-keys in your system can get in the way. This is great for not having to leave the keyboard, but be careful. The box to the right of the Translucent radial button is for setting a hot-key for the action. When Translucent is not selected and an action is performed, whatever the HTML renders is in the display area.

When Translucent is selected and an action performed, a spinner is in the middle with everything in the text area dimmed out. The Translucent setting tells Textwell if the script area contains only JavaScript code (Translucent selected), or an HTML web page with JavaScript embedded (Translucent unselected). If Confirm is active, the user has to confirm their choice before the action is performed. There are two radial buttons in the middle: Confirm and Translucent. To the left of the title box is a selector for changing the icon to represent the type of editing the action will perform. The larger bottom box is for entering the HTML and JavaScript for the action. The top box is for the title of the action. This will bring up a blank Edit Action dialogue. To create a new action, right click on one of the actions and select New Action from the drop-down menu. The HTML defines the graphical input to get more information from the user if needed, and the JavaScript performs the needed tasks. ActionsĪn action in Textwell is some HTML and JavaScript.
#TEXTWELL DICTATION HOW TO#
In this tutorial, I am going to show you how to create your own actions to automate your text editing. The history and actions panels can be open or closed depending on your needs. You never save it, but it keeps a history-for up to a year-of changes to that buffer. It is a simple, minimalist application that acts as a writing buffer, supplying the input for user created actions. The second action will demonstrate the power of Textwell to perform web raking tasks. The first action will be a simple title case converter. In this tutorial, I’ill show you how to make actions for Textwell to extend its functionality.
#TEXTWELL DICTATION MAC#
It's the ultimate scratch pad for the Mac or any iOS device. Textwell is a very handy program to have around. Textwell is modeless in that there is nothing to save. When I saw a tweet about a modeless text editor, I had to follow that up.
