Right. Sorry about that...the script doesn't actually depend on the apps
being open, I just omitted that part of the code to make a heinously
unreadable block of text slightly less heinous. I wasn't sure the chevrons
would make it through the server...here's the script with chevrons:
--begin script
global emailApp, fmpApp
set emailApp to GetRightApp("OPIM")
set fmpApp to GetRightApp("FMP5")
my MailIt("[EMAIL PROTECTED]", "subject", my RelatedRequest("dbName",
"globalField"))
-------handlers--------
to GetRightApp(appCode)
tell application "Finder" to set procID to (get first process whose
creator type is appCode)
set appName to procID as �class psn �
end GetRightApp
on RelatedRequest(zDB, outputField)
--64K of text in outputField
tell fmpApp to tell �class cDB � zDB to set txt to �class vlue� of
�class ccel� outputField
end RelatedRequest
to MailIt(zRecip, zSub, zCon)
tell emailApp
set outMess to make new �class outm� at �class cFld� "Outbox" with
properties {�class addr�:{�class addr�:zRecip, �class rtyp�:�constant
Erty!to �}, �class subj�:zSub, �class ctnt�:zCon}
�event mailsend� outMess
end tell
end MailIt
--end script
On 5/9/01 11:01 AM, you wanted me to know this:
> On 5/9/01 10:49 AM, "Jed Verity" <[EMAIL PROTECTED]> wrote:
>
>> Obviously, I've replaced the chevrons with gt and lt characters...and I've
>> already established that the necessary applications are running. Thanks
>> again for your time, gents!
>
> You sure made this hard to read, Jed. First of all, this is the Entourage
> list, not applescript-users. None of us here have any problems with
> �chevrons� , nor does the list server. You didn't need to convert anything.
> It's too much trouble to convert back.
>
> Secondly, since your script depends on both Entourage and FMP being open at
> the time '(get first process whose creator type is appCode)', you don't need
> to bother with all these raw codes, do you? it will compile automatically
> for any user with the ordinary terminology. (And if you _are_ using the
> Delacour 'as �class psn �' you're not really dealing with appName but with
> the app itself. Otherwise why not use the Smile version of raw codes for
> which doesn't need �class psn �?
>
> Would it be too much trouble to send a version using ordinary terminology,
> or else real chevrons so it will compile easily at this end? Thanks.
~)~)~)~)~)~)~)~)~)~)~)~)~)
Jed Verity
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>