Coding examples, tips, and more…

AppleScript Icon

Create Windows like shortcuts with parameters

Mac OSX doesn’t allow you to create shortcuts like Windows. The closest thing is to create an OSX alias but that doesn’t allow parameters (ex. create a Screen Sharing shortcut that connects to a specific computer). To create a Windows like shortcut with parameters on the Mac: Create a new...

AppleScript Icon

Format Seconds (HH:MM:SS)

A routine to convert seconds to hh:mm:ss (hours:minutes:seconds).

AppleScript Icon

Get Elapsed Seconds

A routine to calculate the amount of seconds from a given start date/time.

AppleScript Icon

Copy File or Folder Path

Copies the full path of a file or folder to the clipboard within Apple OS X Requirements: Apple OS X Very basic knowledge of Automator Install Instructions: Create an Automator Service and set it to receive “selected files and folders” in “any application” Add a “Run AppleScript” action and add...

Shell Script Icon

Backing up a MySQL Database

Shows how to backup a MySQL database from the command line. WARNING: Restoring from this backup will cause any existing database with the given name to be deleted prior to the restore.

AutoIt Icon

Playing an Audio File

Plays a given audio file.

AutoIt Icon

Ejecting all CD Trays

Ejects all CD/DVD drives.

AutoIt Icon

Ejecting a CD Tray

How to eject a CD/DVD tray.

AutoIt Icon

Closing a CD Tray

How to close a CD/DVD tray.

VBScript Icon

Creating a SQL Login (for a Windows Login or Group)

Creates a SQL login for a given Windows user login or group name.

1 2