Re: [Pythonmac-SIG] Storing path as alias

2010-02-22 Thread Tobias Weber
On 21.02.2010, at 15:20, has wrote: Thanks! I made working examples for both, but I guess the first has AppleScript limitations like requiring a UI context. > mactypes.Alias doesn't provide flatten/unflatten APIs, but it's just a > wrapper around aem.ae.AEDesc, which does. import base64 impor

Re: [Pythonmac-SIG] Storing path as alias

2010-02-22 Thread has
Tobias Weber wrote: > Thanks! I made working examples for both, but I guess the first has > AppleScript limitations like requiring a UI context. No, a Window Manager connection is not required. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.source

Re: [Pythonmac-SIG] Storing path as alias

2010-02-21 Thread Tobias Weber
On 21.02.2010, at 15:20, has wrote: Thanks! I made working examples for both, but I guess the first has AppleScript limitations like requiring a UI context. > mactypes.Alias doesn't provide flatten/unflatten APIs, but it's just a > wrapper around aem.ae.AEDesc, which does. import base64 impor

Re: [Pythonmac-SIG] Storing path as alias

2010-02-21 Thread has
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 f

[Pythonmac-SIG] Storing path as alias

2010-02-20 Thread Tobias Weber
Hi, how do I store an unbreakable alias instead of a POSIX path? There's mactypes.Alias in appscript, but it doesn't look serializable. I could use NDAlias via pyobjc and get an NSData out. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://