At 18.52 1998.03.23, <darrylc@foothills.eznet.com> wrote: >Chris, Matthias, et al > >Thought I was going along fine....until I tried to actually do something, ha! > >I tried to create an AE to open a specific doc: > > >$file = "path_to_mydb"; >$evt = AEBuildAppleEvent('aevt', 'odoc', > typeAppleSignature, 'FMP3', > 0,0, "'----':$file") || die $^E; > >I got the event ID from running aete.converter and from the AE db that >comes with FMP3. > >But I get "died. system error occured. No error text available." > >Anyone care to give me a kick? #!perl -wl use Mac::AppleEvents; $file = ':test'; $evt = AEBuildAppleEvent('aevt', 'odoc', typeApplSignature, 'FMPR', 0,0, "'----':TEXT(\@)", $file) or die $^E; print AEPrint($evt); $rep = AESend($evt, kAEWaitReply) or die $^E; print AEPrint($rep); AEDisposeDesc($evt); AEDisposeDesc($rep); You had two main problems: you spelled Appl Apple, and you did not make $file into TEXT. You can also do Ò$fileÓ, but that does not work if $file has a Ò or Ó in it: $evt = AEBuildAppleEvent('aevt', 'odoc', typeApplSignature, 'FMPR', 0,0, "'----':Ò$fileÓ") or die $^E; BTW, this is with Filemaker Pro 2.1, which is FMPR, I don't know what Filemaker Pro 3 is. FMP3 is probably right. -- 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