Title: Re: Text Limit
Jed,
Thnks. You're calling the handler RelatedRequest("dbName", "globalField")' as the third parameter of the handler Maillt. But RelatedRequest doesn't return anything that can be used as a parameter in Maillt. it just does things. What happens if you make two changes:
------------
set txt to my RelatedRequest("dbName", "globalField")
my MailIt("[EMAIL PROTECTED]", "subject", txt )
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
return txt
end RelatedRequest
-----------------
If there's still an error, where exactly does it occur?
(BTW, this list also handles HTML fine, and doesn't introduce artificial line endings when you paste scripts into it. You can reduce bandwidth by clicking the HTML button twice to convert to plain text then back to HTML to get rid of styling.)
--
Paul Berkowitz
On 5/9/01 11:11 AM, "Jed Verity" <[EMAIL PROTECTED]> wrote:
> 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/>
>
- Re: Text Limit Allen Watson
- Re: Text Limit Paul Berkowitz
- Re: Text Limit Paul Berkowitz
- Re: Text Limit Allen Watson
- Re: Text Limit Paul Berkowitz
- Re: Text Limit Jed Verity
- Re: Text Limit Paul Berkowitz
- Re: Text Limit Jed Verity
- Re: Text Limit Allen Watson
- Re: Text Limit Jed Verity
- Re: Text Limit Paul Berkowitz
- Re: Text Limit Jed Verity
- Re: Text Limit Paul Berkowitz
- Re: Text Limit Jed Verity
