-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.praat
executable file
·49 lines (39 loc) · 2.3 KB
/
setup.praat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 2017-2021 Rolando Munoz Aramburú
if praatVersion < 6139
appendInfoLine: "Plug-in name: Finder"
appendInfoLine: "Warning: This plug-in only works on Praat version 6.0.39 or later. Please, get a more recent version of Praat."
appendInfoLine: "Praat website: http://www.fon.hum.uva.nl/praat/"
endif
# Return to default preferences
if not fileReadable("preferences.txt")
pref$ = readFile$("preferences_default.txt")
writeFile: "preferences.txt", pref$
endif
# Commands
## Static menu
Add menu command: "Objects", "Goodies", "Finder", "", 0, ""
### Query section
Add menu command: "Objects", "Goodies", "Create index...", "Finder", 1, "scripts/create_index-dialog.praat"
Add menu command: "Objects", "Goodies", "Search...", "Finder", 1, "scripts/search.praat"
### Do section
Add menu command: "Objects", "Goodies", "Tasks", "Finder", 1, ""
Add menu command: "Objects", "Goodies", "View & Edit files...", "Tasks", 2, "scripts/open_files.praat"
Add menu command: "Objects", "Goodies", "Extract files...", "Tasks", 2, "scripts/extract_files-dialog.praat"
Add menu command: "Objects", "Goodies", "Open script template", "Tasks", 2, "scripts/open_script_template.praat"
Add menu command: "Objects", "Goodies", "-", "Tasks", 2, "scripts/open_files.praat"
Add menu command: "Objects", "Goodies", "Search report", "Tasks", 2, "scripts/report_search.praat"
Add menu command: "Objects", "Goodies", "Frequency report", "Tasks", 2, "scripts/report_frequency.praat"
Add menu command: "Objects", "Goodies", "", "Tasks", 2, ""
Add menu command: "Objects", "Goodies", "Filter search...", "Tasks", 2, "scripts/filter_search.praat"
### Share section
Add menu command: "Objects", "Goodies", "Share", "Finder", 1, ""
Add menu command: "Objects", "Goodies", "Export search...", "Share", 2, "scripts/index_export.praat"
Add menu command: "Objects", "Goodies", "Import search...", "Share", 2, "scripts/index_import.praat"
### About section
Add menu command: "Objects", "Goodies", "-", "Finder", 1, ""
Add menu command: "Objects", "Goodies", "About", "Finder", 1, "scripts/about.praat"
## Dynamic menu
Add action command: "Table", 1, "", 0, "", 0, "Finder", "", 0, ""
Add action command: "Table", 1, "", 0, "", 0, "Import search", "Finder", 0, "scripts/index_import_from_praat_objects.praat"
### Create a local directory
createDirectory: "./temp"