FastScripts 3.2.5: Regex Multiline Modifiers

March 9th, 2023

FastScripts 3.2.5 is now available on the FastScripts home page, or by selecting “Check for Update…” from the FastScripts menu.

This update includes a couple enhancements to the FastScripts Text Suite, which offers free regular expression utilities to all FastScripts users. Specifically, two new parameters are available, which enable the common “multiline” (/m) and “dot matches all” (/s) modifiers:

  • anchors matching every line – should ^ and $ in the search pattern match the starts and ends of lines in a multiline string? defaults to false
  • dot matching all – should a . in the search pattern match every character, including newlines, of a multiline string? defaults to false

These parameters are available for the “search text”, “replace text”, and “split text” commands.

Here’s the complete list of changes for this release:

  • Regular expression script commands now support multiline anchors and dot matches all
  • Modifier key shortcuts when selecting menu items can now be disabled in Settings
  • Add a keyboard shortcut “Cmd-E” to script error panel to open in Script Editor
  • Rename “result” property to “script result” to disambiguate from built-in AppleScript result property
  • Fix a bug that caused the Script Libraries list in Settings to appear shorter than expected

If you enjoy FastScripts, please consider spreading the word on Facebook or Twitter! Thanks for your support.

Smart Web Page Opening with FastScripts

March 3rd, 2023

FastScripts, our macOS scripting utility, facilitates organizing and running your scripts from its menu bar icon, or by keyboard shortcut. It serves many roles as a script runner, but also includes a number of built-in features that augment the baseline features available to AppleScript scripts.

One of those useful features is the open web page command, which abstracts the surprisingly complex notion of “navigating to a given web page URL in your current browser, or default browser” to a simple command you can invoke from any script.

The basic idea is: given a URL you’d like to visit, how do we open it in an appropriate browser, creating a new window if necessary, or replacing the current page when appropriate? FastScripts builds a lot of common sense into its handling of the open web page command, so that for example, if you configure a FastScripts script called “Google News”:

tell application "FastScripts"
   open web page "http://news.google.com/"
end tell

It will open the web page by instructing a web browser on your Mac to open the URL. First, it identifies the ideal browser to open the URL in, based on the following criteria:

  1. The frontmost app, if it’s a known browser
  2. Your default browser, if it is running
  3. Any known browser, if it is running
  4. Launching your default browser, if configured
  5. Launching any known browser on your system

The long and short of this is you can use FastScripts’s “open web page” command to create scripts that open web pages intelligently. That intelligence goes farther than just choosing which browser to open the link in. Where possible, FastScripts also decides whether to create a new window or tab. By default it favors replacing the current page in the current browser.

I use this command extensively in my own collection of “Frequent Web Pages”. I configure these to have the same app-specific keyboard shortcuts in Safari, Brave, Chrome, Firefox, and any other browser I might be using at any time. That way when I press Ctrl-N, for example, in a browser, it always takes me to Google News.

If your scripts ever call for opening web pages in either the current browser or your default browser, I’m sure you’ll enjoy the functionality of FastScripts’s open web page command.

MarsEdit 5.0.4: Restore Preview Window Printing

February 24th, 2023

MarsEdit 5.0.4 is now available on the MarsEdit site and has been submitted for review to the Mac App Store.

This update restores the inadvertently removed ability to print from the Preview Window, and a variety of bug fixes:

  • Restore the ability to print from the Preview Window
  • Fix a crash that could occur while importing MarsEdit 3 data
  • Fix a bug where clicking the circle icon on the date picker calendar didn’t properly set the date to “now”
  • Saving the Network Log to file now defaults to a .txt extension and reveals after saving
  • Restore functionality of Copy/Paste in the New Blog panel
  • Prevent the “Autosave Popover” from appearing on MarsEdit document windows

If you enjoy MarsEdit, please consider writing a review or rating the app on the Mac App Store, spreading the word on Facebook or Twitter, and of course, writing about the app on your own blog! Thanks for your support.

Black Ink 2.2.6: Restore “Auto Check” Feature

February 17th, 2023

Black Ink 2.2.6 is now available on the Black Ink site and has been submitted for review to the Mac App Store.

This is a quick fix to address an issue in 2.2.5 that broke the “Mark incorrect answers as you enter them” option.

If you enjoy Black Ink, please consider writing a review or rating the app on the Mac App Store, and spreading the word on Facebook or Twitter! Thanks for your support.