Re: Fax From Filemaker
Re: Fax From Filemaker
- Subject: Re: Fax From Filemaker
- From: "Jason W. Bruce" <email@hidden>
- Date: Wed, 29 May 2002 18:32:30 -0500
You need the FaxSTF osax.
set printer "faxprint"
tell application "FileMaker Pro"
set contactID to cell "Contact ID" of current record of front database
set faxrecord to first record of database "Contacts" whose cell 1 is
contactID
set faxnumber to item 11 of faxrecord
set areacode to (extract string faxnumber from 1 to 3)
set number_to_dial to (extract string faxnumber from 5 to 12)
end tell
init fax coverpage "FAXstf Pro"
create destination area code areacode number number_to_dial
set destinationindex to result
recipient info index (destinationindex as integer) first (item 3 of
faxrecord) last (item 5 of faxrecord)
work info index (destinationindex as integer) company (item 13 of faxrecord)
tell application "FileMaker Pro"
go to layout 2 of current record of front database
do script FileMaker script "print"
end tell
tell application "FaxStatus" to activate
The extract string command is from the Satimage osax (Smile), but you can
use plain vanilla AS to extract the area code and phone number from a
FileMaker field.
Jason Bruce
>
Message: 2
>
Date: Wed, 29 May 2002 11:21:41 +0100
>
Subject: Fax From Filemaker
>
From: Rob Stott <email@hidden>
>
To: <email@hidden>
>
>
Hi there,
>
>
I wonder if anyone can help me out on this one. I have a database in
>
Filemaker Pro of clients9 contact details and I want to send a fax to
>
specific clients satisfying certain conditions. My problem is (as far as I
>
can see) FaxSTF won9t do the job.
>
>
Does anyone know a clever work around for this or alternatively can anyone
>
recommend me a scriptable Fax application?
>
>
Cheers in advance
>
Rob
>
>
--
>
>
Rob Stott
>
Artwork Designer
>
Humbrol Ltd / Airfix
>
Tel: +44 (0) 1482 716691
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.