4/5/2023 0 Comments Fastscripts llc of ms![]() Starting with FastScripts 3.1, an easy way to do this is simply to select FastScripts -> Open FastScripts Scripting Dictionary from the FastScripts menu. Open FastScripts’s own scripting dictionary in your favorite script editor and explore the items in the FastScripts Text Processing suite. These new commands also support advanced features including the ability to use regular expression matching groups, specify case insensitivity, etc. So how does it work? In your AppleScript, be sure to wrap whatever text processing commands you use with a “tell” block addressing FastScripts: I want to thank John Gruber for reviewing and helping with with the design of the scripting interface, which I like to think represents the “Mac-ification” of providing regular expression support to AppleScript. ![]() Previously it was cumbersome to use regular expressions in AppleScript, resulting in people commonly calling out to scripting languages with “do shell script”, invoking Cocoa directly via AppleScriptObjC interfaces, or installing third-party scripting libraries such as Shane Stanley’s wonderful RegExAndStuff library. These new commands are also completely free of charge, so if you install and keep FastScripts running in the background, your scripts will always have access to these features. These can be used by any AppleScript on your Mac, whether you’re running the script from FastScripts or not. This update introduces an expansion of FastScripts’s own built-in scripting additions, with three powerful new commands for searching, replacing, and splitting text with regular expressions. ![]() FastScripts 3.1 is now available on the FastScripts home page, or by selecting “Check for Update” from the FastScripts menu. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |