Newsgroup: it.comp.macintosh
Titolo: AppleScript: mandare fax

ancora non sono riuscito a mandare fax in automatico via AppleScript:
ho provato con FaxSTF5.05 e le scripting additions di cui parlava
Vittorio ma credo che FaxSTF odii i mac della mia serie (PM5500 con Mac
OS 8.6) perche' mi pianta continuamente tutto.
Ho il vecchio Apple Telecom ma non e' piu' supportato credo e non mi va
di fare lavoro inutile volendo (spero presto) passare ad un G3.
Ho anche trovato una copia di FAXcilitate2.1 che sembra scriptabile ma
e' vecchio e ho problemi con l'installer che non me lo lascia
installare.
-- 
     OO                 Nicolo' Zen
    O  O  (o)(o)        
nic...@libero.it
 , 
nic...@tin.it
    O       oo          DorsoDuro3300, 
     O ooo  <>  ooo     30123 Venezia (tel.041 5201364)

 installare.
Io darei un'occhiata a se ci sono versioni piu` recenti di FAXcilitate
Marco Osti aveva guardato la Suite di Communigate, che fa anche Fax...
ma non so se e` scriptabile in quella parte... Marcooo!
-- 
Ciao,        \+----------+  "La risposta e ` dentro di te...
   Vittorio --| : )    o |      ...MA E` SBAGLIATA!!!"
             /+----------+  - = 
http://fly.to/risorse/
 = -

 ma non so se e` scriptabile in quella parte... Marcooo!
l' ho guardata molto molto distrattamente tanto che non l' ho nemmeno
installata per cui non posso essere d' aiuto. comunque c'e' il manuale
on-line sul server 
www.stalker.com
 seguendo le indicazioni per il fax.
io avevo risolto il problema tanto tempo fa con keyquencer e ricordo non
fu troppo difficile. anche in questo caso mi rendo conto di non fornire
soluzioni ma solo suggerimenti.
--
marco osti
bologna, italy

 
con il modem interno geoport
-- 
     OO                 Nicolo' Zen
    O  O  (o)(o)        
nic...@tin.it
 , 
nic...@libero.it


using (3 or 5 or what).
Vittorio ,
There are a couple of pieces you need to pull together to get this to
work. You need a copy of FaxSTF fax software for the Mac, FileMaker Pro
for the Mac and then you will need to get FaxSTF XCMD Osaxen off of one
of the AppleScript archive sites.
http://stfinc.com/proscriptsdisc.htm
The last piece is the thing that makes this possible. It allows you to
use AppleScript to choose and set-up the fax software to send the fax. 
In your FileMaker database;
for each record, you have fields that contain all the regular fax
information, as well as the info that you want on the fax. I have taken
and built two fields that concatenated all the info that the fax
software is expecting so that I can call each field to do a certain
thing. 
The AppleScript that does the initiation of the faxing is outside of
FileMaker and is pretty simple.
-- Let's start the Fax Status app so that the faxes will send once
generated tell application "Finder"
run application "FaxStatus"
end tell
-- If you have to import the stuff to be faxed, then do that here 
-- Now let's fax all the records
tell application "FileMaker Pro"
do script "faxAllPages"
end tell
and that is it. I also wrapped the last section in a timeout wrapper so
that it gave FileMaker more time to do the stuff, 
try
with timeout of 3600 seconds
tell application "FileMaker Pro"
do script "faxAllPages"
end tell
end timeout
on error
beep
end try
The faxAllPages script is a FileMaker Script 
Perform AppleScript ["FaxOff FaxSwitchPrinter to "LaserWriter 8"] Go to
Record/Request/Page [First]
Go to Layout ["The One to Fax"]
Loop
Enter Browser Made []
Refresh Window [Bring to front]
Perform AppleScript ["faxStartup"]
Perform AppleScript ["faxSetup"]
Page Setup [Restore,No dialog"]
Print [No Dialog]
Go to Record/Request/Page [Exit after last,Next] End Loop
The faxStartup and faxSetup are fields in FileMaker within each record
that contain the faxing info that I built. 
field faxStartup contains;
FaxStartup note " " delay 0 coverPage 0 archive "" with autoDeletion
without callGrouping
field faxSetup contains;
FaxAddDestination organization {field organizaion} fax {field fax
number} phone {field phone number} name {field Name} surname {field
surname} salutation {field salutation}
the Field contents will need to be filled in in the proper format, text
or numbers and need to be in the curly brackets. Text needs to be
wrapped in quotes and numbers not.
{field organization} = {"The Office"}
{field fax number} = {1234567}
{field Name} = {"Bob"}
{field surname} = {"Smith"}
Once all the pieces are there, then you are off and running. I use CRON
to start it automatically as the same time every morning. 
That should give you a good start on the process. You will need to be
familiar with AppleScript and you will have to know how and what you
want to fax so that you can build the faxes automatically before they go
out. 
I hope it isn't too confusing for you.
Lloyd Butler
Product and Systems Development Specialist TWN Commercial Services
A division of Pelmorex Inc.
Mississauga, Ontario
office: 
lbu...@on.pelmorex.com
----
