You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 00 Import all to library.applescript
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,14 @@
1
1
-- @description Import all script to user library
2
2
-- @author Ben Smith
3
3
-- @link bensmithsound.uk
4
-
-- @version 1.2
4
+
-- @version 1.3
5
5
-- @testedmacos 10.14.6
6
6
-- @testedqlab 4.6.10
7
7
-- @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"
8
8
-- @separateprocess TRUE
9
9
10
10
-- @changelog
11
+
-- v1.3 + add default location when choosing a folder
11
12
-- v1.2 + creates "Script Libraries" folder if it doesn't already exist
12
13
-- v1.1 + remove unnecessary declarations
13
14
@@ -18,8 +19,11 @@ global scriptFiles
18
19
setscriptFilesto {}
19
20
20
21
-- Get user input: folder to import
22
+
tellapplication"Finder"
23
+
setcurrentPathto container of (path tome) asalias
24
+
end tell
21
25
22
-
setscriptFoldertochoose folderwith prompt "Please select the folder containing scripts to import"
26
+
setscriptFoldertochoose folderwith prompt "Please select the folder containing scripts to import" default location currentPath
0 commit comments