Jim Mitchell

AppleScript to Compress Individual Files & Folders

I had the need to be able to select several folders at once in the Mac OS Finder and zip them up as individual archives. This AppleScript was the solution I ended up with. The script compresses each item selected into its own archive, and works on both folders and files.

Salesforce.com Security – Who Sees What Series

When I was a new Salesforce.com admin, struggling on my own to figure out the ins and outs of the platform, one of the topics that vexed me the most was record and object security. It took me a long time before I fully understood “who sees what” in Salesforce.

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. The solution I came up with was a simple flow that limited users to a specific set of enterable information.

Mailplane 3 Minimalist CSS

Due to an onslaught of spam that my hosting provider just can’t seem to get a handle on lately, I’m back to using Google Apps for email with my domain, and that means I’m back to using Mailplane as my app of choice to handle working with email messages.

Apex CASE Statement for Last Day of the Month

When using a CASE() statement to find the last day of the month in Apex code, I’ve seen a lot of developers — both newbie & experienced coders alike — test for every month, when really all that needs to be tested are the shorter months, defaulting to 31 for the rest. This is a better Apex CASE statement that’s easier to read.

Making a Field Appear Required on a Visualforce Page

I’ve been working on a force.com app which has the requirement that a user must enter a valid email address on a custom Visualforce page before being able to save the record, but they must also be able to insert the related contact’s email address by clicking a button instead of having to leave the edit page to go find it. That seemed simple enough.