• 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
set a mail content in a File Maker text field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

set a mail content in a File Maker text field


  • Subject: set a mail content in a File Maker text field
  • From: "jose carlos perez" <email@hidden>
  • Date: Fri, 12 Nov 2004 11:34:06 -0600

I 'm traying to set te contents of a recipient of mail app to a field in FM, but and it works but te result is a text with no format like the image attached.

this is the script:

property theMonths : {January, February, March, April, May, June, July, August, September, October, November, December}
global Actfecha
global codigo
global contenido


infomail()
filemakerinfo()


on filemakerinfo() tell application "FileMaker Pro"

		open ("vike:Users:carlosperez:Public:ECSA 2004:Correos.fp5")
		show layout "InBox"
		create new record
		set cell "Fecha" of current record to Actfecha
		set cell "Contenido" of current record to contenido

	end tell
end filemakerinfo

on infomail()
	tell application "Mail"
		set a to selected messages of message viewer 1
		set b to subject of (item 1 of a)
		set codigo to items 11 thru 21 of b as string
		set contenido to content of (item 1 of a)
		set fecha to date received of (item 1 of a)

		set themonth to month of fecha
		set theday to day of fecha
		set theyear to year of fecha

		repeat with x from 1 to 12
			if themonth = (item x of theMonths) then
				set mes to x
				exit repeat
			end if
		end repeat
		set Actfecha to x & "/" & theday & "/" & theyear as string
		set contenido to content of (item 1 of a) as text

	end tell
end infomail




gracias!!! saludos

_________________________________________________________________
Platica con tus amigos en linea con T1msn Messenger http://messenger.t1msn.com.mx/

Attachment: text.tiff
Description: TIFF image

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: set a mail content in a File Maker text field
      • From: Malcolm Fitzgerald <email@hidden>
  • Prev by Date: Re: Delete an item in a list ?
  • Next by Date: Re: computing 20! all the way
  • Previous by thread: Re: Delete an item in a list ?
  • Next by thread: Re: set a mail content in a File Maker text field
  • Index(es):
    • Date
    • Thread