[Pythonmac-SIG] Storing path as alias

has hengist.podd at virgin.net
Sun Feb 21 15:20:17 CET 2010


Tobias Weber wrote:

> how do I store an unbreakable alias instead of a POSIX path?
> 
> There's mactypes.Alias in appscript, but it doesn't look serializable.

mactypes.Alias doesn't provide flatten/unflatten APIs, but it's just a wrapper around aem.ae.AEDesc, which does. Check their docstrings for more information.


> I could use NDAlias via pyobjc and get an NSData out.

NSURL has a 'bookmark' feature in 10.6+.

HTH

has
-- 
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net



More information about the Pythonmac-SIG mailing list