3 # Create a file 'preferencesDirectory$'/sgc2/log/logPerformance
6 form Activate performance logging for SGC2
7 sentence Target_directory_(can_be_empty) ~/Documents
11 call activate_sgc2_logging 'target_directory$'
14 procedure activate_sgc2_logging .targetDirectory$
15 createDirectory("'preferencesDirectory$'/sgc2")
16 createDirectory("'preferencesDirectory$'/sgc2/log")
18 if startsWith(.targetDirectory$, "~")
19 .targetDirectory$ = replace$(.targetDirectory$, "~", homeDirectory$, 1)
22 .targetDirectory$ > 'preferencesDirectory$'/sgc2/log/logPerformance.txt
23 newline$ >> 'preferencesDirectory$'/sgc2/log/logPerformance.txt