Skip to content

Commit

Permalink
Add default location
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmith96 committed Sep 22, 2021
1 parent a8e2292 commit 7c7df89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 00 Import all to library.applescript
@@ -1,13 +1,14 @@
-- @description Import all script to user library
-- @author Ben Smith
-- @link bensmithsound.uk
-- @version 1.2
-- @version 1.3
-- @testedmacos 10.14.6
-- @testedqlab 4.6.10
-- @about Run this script in MacOS's "Script Editor" to import all scripts in a folder (including within subfolders) to the user's "Library/Script Libraries"
-- @separateprocess TRUE

-- @changelog
-- v1.3 + add default location when choosing a folder
-- v1.2 + creates "Script Libraries" folder if it doesn't already exist
-- v1.1 + remove unnecessary declarations

Expand All @@ -18,8 +19,11 @@ global scriptFiles
set scriptFiles to {}

-- Get user input: folder to import
tell application "Finder"
set currentPath to container of (path to me) as alias
end tell

set scriptFolder to choose folder with prompt "Please select the folder containing scripts to import"
set scriptFolder to choose folder with prompt "Please select the folder containing scripts to import" default location currentPath

findAllScripts(scriptFolder)

Expand Down

0 comments on commit 7c7df89

Please sign in to comment.