Using an Arduino to program another Arduino

Hello,
I have an Uno which is no longer able to communicate with my mac. I was wondering if it is possible to program one Arduino with another? I know that you can use this to burn the bootloader but I haven't been able to find anything that says you can upload a sketch directly.

Connect like you were burning bootloader.

Sketch -> Upload using programmer

thanks, that worked :slight_smile: