Reference existing SynthDef by name?

So I’m having multiple files with SynthDefs, now I want a script that loads those files and invokes writeDefFile on each SynthDef. I have something like this:

"./src/supercollider/synthdefs/FMRhodes1.scd".load;
"./src/supercollider/synthdefs/rissetBell.scd".load;
"./src/supercollider/synthdefs/xylophone.scd".load;

// ( this doesn't work ):
SynthDef(\FMRhodes1).writeDefFile(".");
SynthDef(\rissetBell).writeDefFile(".");
SynthDef(\xylophone).writeDefFile(".");

0.exit;

Is there a way to achieve this? The below approach works ofcourse but I don’t like doing it this way since it doesn’t allow me to separate build script from synth definition:

SynthDef(\FMRhodes1, { ... }).writeDefFile(".");

Figured this out!
The trick is to use SynthDescLib.global.at(\...).def
Here is the full working code for my use case:

"../FMRhodes1.scd".load;
"../rissetBell.scd".load;
"../xylophone.scd".load;

SynthDescLib.global.at(\FMRhodes1).def.writeDefFile("../compiled");
SynthDescLib.global.at(\rissetBell).def.writeDefFile("../compiled");
SynthDescLib.global.at(\xylophone).def.writeDefFile("../compiled");

0.exit;