I am trying pretty much the same thing as Mark does with the UFOs, however, I wanted to change mine back to .otf files. When I change the code back, though, it does not export anymore and gives me "Result: 0". What am I doing wrong? (as you can see, I am renaming the familyNames in the process, but that should not be a problem, should it?)
Oh, and I also had to comment out Exporter.setFontMaster_(Master), since it gave me an error when trying .otf. Is this the problem, maybe?
Exporter = NSClassFromString("GlyphsFileFormatOTF").alloc().init()
for i, f in enumerate(Glyphs.fonts):
f.familyName = "myFamilyName" + str(i)
Master = f.fontMasters()
FilePath = f.parent.fileURL().path()
FilePath = FilePath.replace(".glyphs", "-"+Master.name+".otf")
Result = Exporter.writeFont_toURL_error_(f, NSURL.fileURLWithPath_(FilePath) , None)
print "Result:", Result
Thanks in advance!
Oh, and I am using Glyphs 1, since I am still on OS 10.8.5.