Karsten Wolf wrote: > I'm new to python & appscript and try to control some FileMaker 9 > databases.
Don't have a copy of FileMaker myself, but will try to help best I can. > I'd like to handle container fields (CF). > > Getting these in appscript is a little more difficult than in other > scripting languages. When getting a record as a list, a CF shows up > as <CarbonX._AE.AEDesc object at 0xf5d8>. AEDesc values are equivalent to AppleScript's «data....» values. > Accessing this list item yields nothing; AEDesc.data='', > AEDesc.type='tdta'. What does the equivalent AppleScript give you? Appscript should give the same result. > Accessing the CF in a separate request gives the correct data; > AEDesc.data='some binary stuff' and AEDesc.type='PICT' > > So far so good. > > How do I write PICT (or any other image type) data into a CF? Appscript's support for picture types is the same as AppleScript's, i.e. pretty lame. (If anyone feels like writing a patch to improve it, please do.) However, if you know how to do it in AppleScript, post the code here and I can supply the Python equivalent for you. HTH has -- http://appscript.sourceforge.net http://rb-appscript.rubyforge.org _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig