<commit_before>tell application "Reminders"
	activate
	set theAccount to name of first account
	tell account theAccount
		set theList to name of first list
		set myReminder to (make new reminder at list theList with properties {name:"{popclip text}"})
	end tell
end tell<commit_msg>update Reminders to choose first list in alphabetical order<commit_after>on sortList(unsortedList)
	set oldDelimiters to AppleScript's text item delimiters
	set AppleScript's text item delimiters to (ASCII character 10)
	set sortedList to paragraphs of (do shell script "echo " & quoted form of (unsortedList as string) & "| sort  -d -f")
	set AppleScript's text item delimiters to oldDelimiters
	return sortedList
end sortList

-- sort the list
tell application "Reminders"
	activate
	get the name of every account
	set theAccount to name of first account
	tell account theAccount
		set allLists to the name of every list
	end tell
end tell
set sortedList to sortList(allLists)
set theList to first item of sortedList

tell application "Reminders"
	tell account theAccount to set myReminder to (make new reminder at list theList with properties {name:"{popclip text}"})
end tell
{'fraction_non_alphanumeric': 0.046511627906976744, 'fraction_numerical': 0.0017226528854435831, 'mean_word_length': 5.020725388601036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3622322', 'n_tokens_mistral': 343, 'n_tokens_neox': 322, 'n_words': 160}