The dazzling slap-guitar sequences in August Rush (2007) were performed by Gary Hoey, a professional rock guitarist hired as Highmore's hand double.
Freddie Highmore (who played Evan Taylor) worked intensively with Hoey to learn the choreography—finger placement, body movement, timing—so the on-screen illusion was seamless. He sold the performance convincingly, but the audio and advanced technique are Hoey's.
This is standard practice: actors train for visual authenticity, while virtuosos handle the actual playing. Think Ralph Macchio in Crossroads (Ry Cooder/Steve Vai) or Michael J. Fox in Back to the Future (Paul Hanson).