• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cannot coerce field contents to text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cannot coerce field contents to text?


  • Subject: Cannot coerce field contents to text?
  • From: Brian Christmas <email@hidden>
  • Date: Sun, 07 Dec 2014 10:01:14 +1100

G’day Scripters.

In Yosemite, I’ve spent several hours trying various things with this, and poring over Explored 5, but cannot get the contents of a field to coerce to text.

I’ve also tried coercing the return delineated variable that the field binds to to text, and that also errors.

Anybody able to guide me on this please? I’m trying to add a return after the last line of the field, and also want to be able to get each paragraph of the field, that is supposed to contain, and be editable, a list of email addresses.

The answer is frustratingly eluding me.

Regards

Santa

on setMailList2:sender
try
set my mailAddressesSecondaryError to contents of sender as text -- Shanes eBook says to coerce to text
if last paragraph of my mailAddressesSecondaryError ≠ "" then set my mailAddressesSecondaryError to my mailAddressesSecondaryError & return
my saveTheGeneralData()
on error errmsg
display dialog "setMailList2 " & errmsg
end try
end setMailList2:



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Cannot coerce field contents to text?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: transparent window won't activate
  • Next by Date: Re: Cannot coerce field contents to text?
  • Previous by thread: Re: transparent window won't activate
  • Next by thread: Re: Cannot coerce field contents to text?
  • Index(es):
    • Date
    • Thread