A JavaScript function called getNewHtml() determines what the html of a file would be, if the user's inputs were hard-coded into the html. The function then returns a string of characters with this information.
An AppleScript called replaceHtml.scpt calls getNewHtml(), and sets string_to_write to the content of an .html file. The AppleScript then write the string to a TextWrangler file.
This is a first rough draft of the JavaScript and AppleScript, but both work now.
Follow Save Web Page Inputs
Other Useful Business Software
Build on Google Cloud with $300 in Free Credit
Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query exabytes in BigQuery, or build AI apps with Vertex AI and Gemini. Once your credits are used, keep building with 20+ products with free monthly usage, including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. Sign up to start building right away.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Save Web Page Inputs!