New to Typophile? Accounts are free, and easy to set up.
I'm trying to make use of FontLab's ability to run a Python script when a font is opened, the open.py that's located in the "System" Macros folder but I'm unable to get things working.
As a test, in the "System" Macros folder I have an open.py that contains:
print 'font opened'
...and a save.py that contains
print 'font saved'
...but only the save.py is working. I've tried opening fonts from the file menu and by double clicking a VFB but I get nothing. Is there something else I need to do? I've tried this on two computers, with both FontLab 5.0.2 and 5.0.4 for the Mac.
Thanks!
Andy
16 Apr 2008 — 12:54pm
Hm, since it's been a day I'm gonna follow up my own question with something a bit more broad:
Does anyone use the open.py script in the "System" Macros folder?
Can anyone confirm that it's supposed to work with FontLab 5?
As far as I understand, FontLab should execute this script when the application is launched, so if anyone wants to test the open.py and save.py you can just put a simple print statement in them like I mentioned in the last post and see if anything happens (only the save.py works for me)
Much appreciated,
Andy
17 Apr 2008 — 6:07pm
Hi Andy, I just gave it a try and got the same results as you. (MacTel, OSX 10.4.11, FL 5.0.4)
18 Apr 2008 — 1:50am
I just checked and got the same results too: save.py works but open.py and new.py don't. I'm running FL 5.0.2 on 10.5.2 PPC.
18 Apr 2008 — 7:32am
Hey Miguel and Paul, thanks for testing that out