Skip to content

Instantly share code, notes, and snippets.

@melangue
Created February 25, 2017 10:47
Show Gist options
  • Save melangue/6db5e882caddd23c4294a30cdc1cb1ee to your computer and use it in GitHub Desktop.
Save melangue/6db5e882caddd23c4294a30cdc1cb1ee to your computer and use it in GitHub Desktop.
Script launcher plus - choose a script from folder prompt and run it
-- Script Launcher Plus
-- 25/02/17
-- set path to script folder
set _Path to ("/Users/You/Desktop" as POSIX file)
-- prompt user to choose a file from script folder
set scriptLaunch to choose file with prompt "Choose a script to run" default location _Path
try
-- run chosen script
run script scriptLaunch
on error
display alert "Your script failed to launch."
end try
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment