ScriptTap
TextTransform

Command video guide

TextTransform

TextTransform prepares text for later script commands. It can search, extract, replace, split, join, trim, change capitalization and parse numbers. It does not type into another app. This Intro / Case guide builds a short shared demonstration script.

Create and name a new script. Manually drag SetVariable from Variables, keep Single, choose String, and assign s1 the text Hello ScriptTap. Keep This Script Only. This supplies the source before the transformation runs.

Manually drag TextTransform after the assignment. Its ten native operations are contains, extract, replace, split, join, trim, case, parseInt, parseDecimal and findAll. Choose case here. Changing the operation clears settings owned only by the outgoing operation; review the new operation and its output before saving.

Use In: This Script Only stores results locally; Script Thread shares them within the parent script's call tree. The input can be literal Text or an earlier String var. Choose String var s1 and keep local scope.

Case: Lower converts letters to lowercase; Upper converts them to uppercase. Choose Upper and set the String output to s2. A separate output preserves the original s1. Non-letter characters remain as text; the command stores a String for later commands rather than displaying it by itself.

Save Outputs: optional Success needs a Boolean destination and Error needs a String destination. These are status results, separate from the transformed text. Leave Save Outputs off for this example and tap Save.

Manually drag supporting Display after TextTransform. Keep Once, choose Variable s2, select a clear screen area, and set lifespan to 10000 ms. If Android asks, allow screen capture. Keep the other display settings at their defaults.

Manually drag a supporting PromptMe last. Keep the regular Standard prompt, Header Complete, and add one Done button with Boolean output b1. Leave Use Toggles & Text off. It confirms that execution reached the next command; Display shows the transformed value.

Close the editor and use Play. The genuine result is HELLO SCRIPTTAP, read from s2, while s1 remains Hello ScriptTap. After the real ten-second display, Complete appears. Press Done to finish automatically. Use Case when later commands need consistent capitalization.

Intro / Case

Step-by-step guide

  1. Step 01

    Text Transform prepares text for later script commands. It can clean, convert, search, replace, or split text. In this example, we will turn the text stored in s1 into uppercase and display the result.

    TextTransform step 1: Text Transform prepares text for later script commands. It can clean, convert, search, replace, or split text. In this example, we will turn the text stored in s1 into uppercase and display the result.
  2. Step 02

    Open the main menu, then Scripts.

    TextTransform step 2: Open the main menu, then Scripts.
  3. Step 03

    Create a new blank script.

    TextTransform step 3: Create a new blank script.
  4. Step 04

    Find the new script at the bottom of the library.

    TextTransform step 4: Find the new script at the bottom of the library.
  5. Step 05

    Open its options, choose Rename, and pick a descriptive name.

    TextTransform step 5: Open its options, choose Rename, and pick a descriptive name.
  6. Step 06

    Select the new script and open the editor. Collapse the extra overlay controls if needed. If Android asks, allow screen capture.

    TextTransform step 6: Select the new script and open the editor. Collapse the extra overlay controls if needed. If Android asks, allow screen capture.
  7. Step 07

    First, provide some text to transform. Expand Variables and drag Set Variable into the script.

    TextTransform step 7: First, provide some text to transform. Expand Variables and drag Set Variable into the script.
  8. Step 08

    Open the frame, keep Single mode, and choose String as the type.

    TextTransform step 8: Open the frame, keep Single mode, and choose String as the type.
  9. Step 09

    Name it s1 and enter Hello ScriptTap as its value. Keep This Script Only and tap OK. This assignment runs before the transformation.

    TextTransform step 9: Name it s1 and enter Hello ScriptTap as its value. Keep This Script Only and tap OK. This assignment runs before the transformation.
  10. Step 10

    Drag Text Transform below the assignment. Then open its frame.

    TextTransform step 10: Drag Text Transform below the assignment. Then open its frame.
  11. Step 11

    The Operation menu selects the job: Contains, Extract, Replace, Split, Join, Trim, Case, Parse Integer, Parse Decimal, or Find All. The other tabs explain these operations. Choose Case for this example.

    TextTransform step 11: The Operation menu selects the job: Contains, Extract, Replace, Split, Join, Trim, Case, Parse Integer, Parse Decimal, or Find All. The other tabs explain these operations. Choose Case for this example.
  12. Step 12

    Use In controls where the result is stored. This Script Only keeps it local. Script Thread shares it within the parent script's call tree. Keep the local scope for this example.

    TextTransform step 12: Use In controls where the result is stored. This Script Only keeps it local. Script Thread shares it within the parent script's call tree. Keep the local scope for this example.
  13. Step 13

    Input can be text entered here, or a String variable set by an earlier command. Choose String variable and enter s1, so this command reads the value we just assigned.

    TextTransform step 13: Input can be text entered here, or a String variable set by an earlier command. Choose String variable and enter s1, so this command reads the value we just assigned.
  14. Step 14

    Case offers Lower and Upper. Lower converts letters to lowercase; Upper converts them to uppercase. Select Upper.

    TextTransform step 14: Case offers Lower and Upper. Lower converts letters to lowercase; Upper converts them to uppercase. Select Upper.
  15. Step 15

    Enter s2 as the String output. The transformed text will be stored there for later commands. Using a separate destination keeps the original s1 value intact.

    TextTransform step 15: Enter s2 as the String output. The transformed text will be stored there for later commands. Using a separate destination keeps the original s1 value intact.
  16. Step 16

    Save Outputs adds optional status results. Success uses a Boolean destination, and Error uses a String destination for an error message. These are separate from the transformed text itself.

    TextTransform step 16: Save Outputs adds optional status results. Success uses a Boolean destination, and Error uses a String destination for an error message. These are separate from the transformed text itself.
  17. Step 17

    We do not need those extra results here, so turn Save Outputs off and tap Save. If you change the operation later, review its settings and output destination before saving.

    TextTransform step 17: We do not need those extra results here, so turn Save Outputs off and tap Save. If you change the operation later, review its settings and output destination before saving.
  18. Step 18

    To make the result visible, expand Device and drag Display after Text Transform. This supporting command will show the value stored in s2.

    TextTransform step 18: To make the result visible, expand Device and drag Display after Text Transform. This supporting command will show the value stored in s2.
  19. Step 19

    Open Display, keep Once mode, switch its source to Variable, and enter s2.

    TextTransform step 19: Open Display, keep Once mode, switch its source to Variable, and enter s2.
  20. Step 20

    Open the area selector and resize the box to a clear area. Use the check mark to return.

    TextTransform step 20: Open the area selector and resize the box to a clear area. Use the check mark to return.
  21. Step 21

    Set its lifespan to ten thousand milliseconds, giving us ten seconds to see the text. Keep the other settings at their defaults and tap OK.

    TextTransform step 21: Set its lifespan to ten thousand milliseconds, giving us ten seconds to see the text. Keep the other settings at their defaults and tap OK.
  22. Step 22

    Add Prompt Me after Display as a final confirmation. It lets us see that the script reached the next command.

    TextTransform step 22: Add Prompt Me after Display as a final confirmation. It lets us see that the script reached the next command.
  23. Step 23

    Keep the regular Standard prompt, and give it the header Complete.

    TextTransform step 23: Keep the regular Standard prompt, and give it the header Complete.
  24. Step 24

    Add a button named Done, using b1 for its Boolean output. Then tap OK.

    TextTransform step 24: Add a button named Done, using b1 for its Boolean output. Then tap OK.
  25. Step 25

    The script assigns the source text, transforms it, displays the result, and shows a confirmation. Close the editor to test it.

    TextTransform step 25: The script assigns the source text, transforms it, displays the result, and shows a confirmation. Close the editor to test it.
  26. Step 26

    When the script is complete, simply use the Play button in the main overlay.

    TextTransform step 26: When the script is complete, simply use the Play button in the main overlay.
  27. Step 27

    The screen shows HELLO SCRIPTTAP. Text Transform read s1 and saved uppercase text in s2. The original value remains unchanged.

    TextTransform step 27: The screen shows HELLO SCRIPTTAP. Text Transform read s1 and saved uppercase text in s2. The original value remains unchanged.
  28. Step 28

    After ten seconds, Display closes and Complete appears.

    TextTransform step 28: After ten seconds, Display closes and Complete appears.
  29. Step 29

    Press Done. The script finishes automatically. Use Case when later commands need text with consistent capitalization.

    TextTransform step 29: Press Done. The script finishes automatically. Use Case when later commands need text with consistent capitalization.