Easy question: change Keyboard Shortcuts preferences

Hi, I’m a very new AppleScript user.

I’m trying to create a script that changes two keyboard shortcuts in the System Preferences to F9 and F10:

“Capture selection to file” (default is Apple-Shift-4, want to change it to F9)
“Capture selection to clipboard” (default is Apple-Control-Shift-4, want to change it to F10).

Here’s what I have so far, but the “set” commands are not working? Not sure what exactly I’m doing wrong, but I’m assuming I’m just missing something obvious?

tell application "System Preferences"
	set current pane to pane "com.apple.preference.keyboard"
	tell application "System Events" to tell process "System Preferences" to tell tab group 1 of window 1
		
		click radio button "Keyboard Shortcuts"
		set value of text field 2 of row 4 of outline 1 of scroll area 1 to "F9"
		set value of text field 2 of row 5 of outline 1 of scroll area 1 to "F10"
		
	end tell
end tell

Any help would be greatly appreciated, thank you!

Oops, this was supposed to go in the AppleScript | OS X forum, could a moderator please move it?