Code

AppleScript to Generate Strong Passwords

I’d totally forgotten I wrote this AppleScript until I needed to create a strong password this morning. If you’re a Mac user and need to generate unique strong passwords, give this script a try.

Continue reading →

AppleScript to Compress Files and Folders

I had the need to select several folders at once in the Mac OS Finder and zip them up as individual archives. This AppleScript to compress files and folders was the solution I came up with.

Continue reading →

Salesforce Flows, Visualforce and Record Context

I was asked to find a solution for our field reps that would simplify the process of adding a completed task to their activities when they visited one of our retail stores.

Continue reading →

Making a Field Appear Required on a Visualforce Page

I’ve been working on a force.com app with the requirement that a user must enter a valid email address on a Visualforce page before being able to save a record.

Continue reading →

AppleScript to Add Files in the macOS Finder

I had the need to add a bunch of named text files to a folder in the Finder on my Mac today.

I found it a pain to open BBEdit, make a new document, save it to where I wanted it, and then manually copy & rename the file back in the Finder. A lot of effort just to get 7 or 8 empty files with different names.

Continue reading →

AppleScript to Toggle the Mac Desktop

Here’s an AppleScript I use to quickly toggle desktop visibility for taking screenshots and recording screencasts that I thought might be useful for others.

Continue reading →