Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
Integrate & use regex script in Shortcuts for iPadOS

I’m newbie in coding. Since many days, i search to make a script on my iPad (my only computer) with Shortcuts & Scriptable for find and replace text from a word document.

I understand that use Javascript on iPadOS is necessary to go out the limit of Shortcuts from Apple.

I’ve have a schortcuts which find the good file, but i can’t exploit script from Scriptable.

using System.IO;
using System.Text.RegularExpressions;
using DocumentFormat.OpenXml.Packaging;

using (WordprocessingDocument wordDoc = 
            WordprocessingDocument.Open(document, true))
    {
    public static void SearchAndReplace(string document)
    {
     using (WordprocessingDocument wordDoc = WordprocessingDocument.Open(document, true))
        {
            string docText = null;
            using (StreamReader sr = new StreamReader(wordDoc.MainDocumentPart.GetStream()))
            {
                docText = sr.ReadToEnd();
            }
        Regex regexText = new Regex("XXX");
        docText = regexText.Replace(docText, "Chat");

        using (StreamWriter sw = new StreamWriter(wordDoc.MainDocumentPart.GetStream(FileMode.Create)))
        {
            sw.Write(docText);
        }
    }
}
}

Are-you any idea ?

To be complete, i want make this. enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!