Created
February 25, 2017 10:47
-
-
Save melangue/6db5e882caddd23c4294a30cdc1cb1ee to your computer and use it in GitHub Desktop.
Script launcher plus - choose a script from folder prompt and run it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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