Skip to content

Instantly share code, notes, and snippets.

@petrowsky
petrowsky / gist:f85fdc549e72ca297c92e64e53a0aaf9
Last active August 8, 2024 21:38
AppleScript for triggering the Specify dialog.
-- Version 240808-02
try
--tell application "FileMaker Pro" to activate
tell application "System Events"
tell process "FileMaker Pro"
set theWindow to window 1
set uiElements to entire contents of theWindow
if (name of window 1 is "Specify Calculation") then
@petrowsky
petrowsky / gist:970d4e45203b8d021e0bbbd29f5e9532
Created May 28, 2025 19:05
FMIndent Post-processing filemakerstandards
function transformLet(text) {
return text.replace(/Let\s*\(\s*\[/, 'Let ( [');
}
function formatAmpersands(input) {
// Validation function to ensure all characters are preserved
function validateOutput(original, formatted) {
const originalChars = original.replace(/\s/g, '').split('').sort();
const formattedChars = formatted.replace(/\s/g, '').split('').sort();
Aegir BOA-5.7.12-lts on Devuan/chimaera x86_64
HOST Linode
VPS Linux KVM guest
CSF 15.00
NGX 1.29.1
PHP 8.3.26
DBV 5.7.44
RDS 7.2.11
SHD 10.0p2
SSH OpenSSH_10.0p2, OpenSSL 3.4.3 30 Sep 2025