Skip to content

Instantly share code, notes, and snippets.

@edenwaith
Created December 9, 2021 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edenwaith/c70a7c32cbb0af08dbd296c1f0132bac to your computer and use it in GitHub Desktop.
Save edenwaith/c70a7c32cbb0af08dbd296c1f0132bac to your computer and use it in GitHub Desktop.
AppleScript to create an alias in the Applications folder which points to the Accessibility Inspector.app contained within Xcode.
-- File: CreateAccessibilityInspectorAlias.scpt
-- Description: Create an alias in the Applications folder which points to the
-- Accessibility Inspector.app contained within Xcode.
-- Author: Chad Armstrong (chad@edenwaith.com)
-- Date: 8 December 2021
tell application "Finder"
set destinationFolder to "Macintosh HD:Applications"
set sourceApplication to "Macintosh HD:Applications:Xcode.app:Contents:Applications:Accessibility Inspector.app"
make new alias file at destinationFolder to sourceApplication
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment