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:

  1. Create a new Automator application
    Automator Application
  2. Add a “Run AppleScript” step with the following code:
  3. Save the application

Now whenever you want to create a shortcut just make a copy of the saved application above (name it what you want, change its icon) and change its comments to the command you want to run.
Shortcut Info

Here are some example commands to get you started:

Launch an app

 Note: To get the true path an an application, right click on it and then choose  “Show package contents”.  The app will be inside the /Contents/MacOS/ folder.

 Tip: Use my “Copy File or Folder Path” for a quick and easy way to copy the full path of any file or folder.

Launch an app and have it open a file
exec “/Applications/” “/Users/johndoe/Documents/My Movie.m4v”

Screen share connect to a remote computer
open vnc://

Open system preferences
open -a system\ preferences

Open a website