Change font attributes in all notes fields of Keynote

I’m trying to figure out how to select each note field in a Keynote presentation, set the font size to 10 and bold of whatever text is currently in the field.

Can someone help?

Donny Hornstein
Dallas, TX

I’ve tried this:

tell application "Keynote"
set newFontSize to 10
	tell slideshow 1
		repeat with x in every slide
			tell x
				set (notes font size) to newFontSize
			end tell
		end repeat
	end tell
end tell

but i can’t get it to compile. Also, I’m not sure how to set the bold parameter.

Donny Hornstein
Dallas, TX

Got this to compile:

tell application "Keynote"
	set fontsize to 10
	tell slideshow 1
		repeat with x in every slide
			tell x
				set size of font of notes to fontsize
			end tell
		end repeat
	end tell
end tell

But get error message:

“Keynote got an error: Can’t make font of notes of item 1 of every slide of slideshow 1 into type reference.”

Closer… and still need help with the bold part…

Donny Hornstein
Dallas, TX

You cannot set the attributes of text in notes. At least, not with AppleScript.

So, Craig, you’re saying I can’t set the font attributes with Applescript? (Point size & weight) What other automated solutions might there be for this?

Donny Hornstein
Dallas, TX

Below is a screenshot of Keynotes’ dictionary for notes. ( Providing you are using ScriptDebugger )
The only option for notes is to get or set its value. You can try GUI scripting. I use “cliclick” for mouse clicks. You might give it a try.

hth,

Craig