[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Re: AE & FMP



At 12.46 1998.03.24, Andreas Marcel Riechert
<riechert@miyako.japanologie.kultur.uni wrote:
>$evt = AEBuildAppleEvent("TECx", "Conv", typeApplSignature,
>"MACS", 0,0,"'----':ã$stringä,'frmE':ã$incodeä, 'toE ':ã$outcodeä");

(I am assuming ã and ä are curly quotes.)

  $evt = AEBuildAppleEvent('TECx', 'Conv', typeApplSignature(), 'MACS', 0, 0,
    "'----':TEXT(\@), 'frmE':TEXT(\@), 'toE ':TEXT(\@)",
    $string, $incode, $outcode
  );

Note that if we don't use double-quotish interpolation, it is TEXT(@), not
TEXT(\@).

  $evt = AEBuildAppleEvent('TECx', 'Conv', typeApplSignature(), 'MACS', 0, 0,
    q"'----':TEXT(@), 'frmE':TEXT(@), 'toE ':TEXT(@)",
    $string, $incode, $outcode
  );



Think of it like:

  sprintf("'----':%s, 'frmE':%s, 'toE ': %s", $string, $incode, $outcode)

But the AE stuff uses TEXT(@) instead of %s or something, and it is
formatted differently than %s would format.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==               New Book:  MacPerl: Power and Ease               ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch