On 13 Aug 2007, at 18:01, Karsten Wolf wrote: >>> Accessing this list item yields nothing; AEDesc.data='', >>> AEDesc.type='tdta'. >> >> What does the equivalent AppleScript give you? Appscript should give >> the same result. > > Ok. I've crosschecked with Frontier and AppleScript. > > I'm using FileMaker 9 Advanced and it has changed behaviour > compared to previous versions. It used to deliver the PICT data if > a record was retrieved as a list (see below the Frontier binary > screenshot).
Looks like a bug in FMP9 then; might want to file a report on it. >>> However, if you know how to do it in AppleScript, >> post the code here and I can supply the Python equivalent for you. > > AppleScript returns on > > get cell "e" of record 16 of layout "Untitled Copy" of window > "Untitled" > > «data PICT8F5C0000000001...» > > Frontier has a binary type which can be sent to FileMaker:<Bild > 20.png> These are equivalent to a CarbonX.AE.AEDesc instance in Python. > In both cases the returned data can be sent back to FileMaker; like > this: > tell application "FileMaker Pro Advanced" > set t to get cell "e" of record 16 of layout "Untitled Copy" of > window "Untitled" > set cell "e" of record 15 of layout "Untitled Copy" of window > "Untitled" to t > end tell > > > I simply don't know how to re-package the returned data. I have > some binary (raw in pythonese) data and an OSType (AEDesc.type). > How do i package them to be sent via appscript? Same deal. Just pass the returned AEDesc straight back to FMP as-is. fmp = app('FileMaker Pro Advanced') t = fmp.windows['Untitled'].layouts['Untitled Copy'].records[16].cells ['e'].get() fmp.windows['Untitled'].layouts['Untitled Copy'].records[15].cells ['e'].set(t) 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