robofab.tools.remote
index
/code/projects/robofab/Lib/robofab/tools/remote.py

Remote control for MacOS FontLab.
initFontLabRemote() registers a callback for appleevents and
runFontLabRemote() sends the code from a different application,
such as a Mac Python IDE or Python interpreter.

 
Modules
       
sys

 
Classes
       
aetools.TalkTo
FontLab

 
class FontLab(aetools.TalkTo)
     Methods inherited from aetools.TalkTo:
__getattr__(self, name)
__init__(self, signature=None, start=0, timeout=0)
Create a communication channel with a particular application.
 
Addressing the application is done by specifying either a
4-byte signature, an AEDesc or an object that will __aepack__
to an AEDesc.
activate(self)
Send 'activate' command
get = _get(self, _object, as=None, _attributes={})
_get: get data from an object
Required argument: the object
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the data
newevent(self, code, subcode, parameters={}, attributes={})
Create a complete structure for an apple event
send(self, code, subcode, parameters={}, attributes={})
Send an appleevent given code/subcode/pars/attrs and unpack the reply
sendevent(self, event)
Send a pre-created appleevent, await the reply and unpack it
set = _set(self, _object, _attributes={}, **_arguments)
set: Set an object's data.
Required argument: the object for the command
Keyword argument to: The new value.
Keyword argument _attributes: AppleEvent attribute dictionary
start(self)
Deprecated, used _start()

 
Functions
       
Glyph2String(glyph)
String2Glyph(gString, penClass, font)
initFontLabRemote()
Call this in FontLab at startup of the application to switch on the remote.
makeVFB(sourcePathUFO, destinationPathVFB=None)
FontLab convenience function to import a UFO and save it as a VFB
os9PathConvert(path)
Attempt to convert a unix style path to a Mac OS9 style path.
No support for relative paths!
receiveGlyph(glyphString, font=None)
runFontLabRemote(code)
Call this in the MacOS Python IDE to make FontLab execute the code.
transmitGlyph(glyph)

 
Data
        __all__ = ['initFontLabRemote', 'runFontLabRemote']
world = [Robofab is running on darwin. Python version: 2...uff: None, FontLab stuff: False, FLversion: None]