Re: Fax From Filemaker
Re: Fax From Filemaker
- Subject: Re: Fax From Filemaker
- From: Rob Stott <email@hidden>
- Date: Thu, 30 May 2002 14:38:09 +0100
- Wheresrob: AtWork
Hi,
That9s got it sorted out, I didn't realise there was an OSAX for FaxSTF -
daft of me not to have looked really but there you go. Thanks very much for
your help, its appreciated!
R.
On 30/5/02 12:32 am, "Jason W. Bruce" <email@hidden> wrote:
>
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.
--
Rob Stott
Artwork Designer
Humbrol Ltd / Airfix
Marfleet
Kingston upon Hull
England
HU9 5NE
Tel: +44 (0) 1482 716691
Mobile: +44 (0) 7881 811533
Fax: +44 (0) 1482 781781
ICQ No: 148381812
"...its a small world, but I wouldn9t want to paint it."
_______________________________________________
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.