Another FMP question
Another FMP question
- Subject: Another FMP question
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 06 Nov 2000 07:58:05 -0800
Is it common for the supposed ability to link (or embed) an applescript from
FMP to be terminally problematic?
The person I am attempting to help out here is very proud of his
FMP-scripting abilities (non-applescript) and wants to keep as much control
as possible, He has literally hundreds of interlinked FMP scripts which all
work perfectly to his satisfaction; he just wants help with one or two
external things they can't do. I'm trying to help him get exported records
out as an email attachment in one easy step. I have written an applescript
that converts his comma-delimited exported files via Tex-Edit Plus into the
DOS-format he needs, adding some more information from an FMP field which he
can't do, and sends them out in Entourage.
I'd like to have added the script as a final step from the FMP script he
runs by pushing a button in FMP. But if I try embedding the whole thing as
advertised as a "Perform Applescript" script step there, it's no good
because it doesn't retain properties. (The set-up procedure setting the
properties just runs every time.) If save my applescript as an applet, and
simply write the "Perform Applescript" step as 'tell application "Convert
Applet" to run', with a run handler, or to do anything else with another
handler, it works, but hangs and never gets back to FMP without Apple Event
timing out. This happens also if I save it as a stay-open applet. It's not
any specific event in the applet - I tried removing the entire script aside
from the 'on run/end run' or 'on ConvertAndSend()/end ConvertAndSend' lines,
and the same thing happens. The applet is waiting for some sort of 'reply or
receipt' and times out eventually - in the meantime FMP just hangs there
with command-. symbol flashing and no way to do anything except abort it. If
I do so, it usually turns out that the whole script (when I haven't removed
it) has run, but not always.
So I've set the script to run from OSA menu, which works just fine, but
takes the extra step of selecting it in the OSA menu after doing the FMP
script. (My previous experience with keyboard commands from OSA has not been
favorable.) Is this the best solution, short of applescripting all his FMP
script steps, which my friend does not want me to do?
--
Paul Berkowitz