I¹ve used a combo of Panorama, Applescript, and Cron to do this fairly
reliably. For years I¹ve had an Applescript that was constantly running a
loop and checking the time, then uploading files once a day, it was solid.
But, when I needed another similar script to run (at a different time) I ran
into issues, even thought the new script was an edited version of the
original. The solution was to separate the timekeeping from the
Applescript, use a cron job to run the Applescript at the desired time, then
both the original Applescript (watching the time itself) and the new script
(fired by cron) performed as desired. Or the cron job could fire an
Applescript that activates Panorama and runs a procedure that uses embedded
Applescript in a similar way.
Using Applescript sans Panorama
The cron fires the Applescript at a set time of day. (using cronx)
The Applescript then activates Interarchy and fetches a file, then removes
the file from the host, then sends an updated file (two different files one
grabs new data from the web server, one sends updates to the web server).
tell application “Interarchy"
.csv" user “XXXXX” password “XXXXX” with overwrite
remove host "redhouserecords.com" path
.csv” user “XXXXX” password “XXXXX” without recursive
store file "Red House
Files:WebSiteStore:panorama-orders.csv" host “redhouserecords.com” path
rs.csv" user “XXXX” password “XXXXX” with overwrite
Or from within a Panorama procedure
tell application "Interarchy"
store file $«“InsertPathHere:”+mySSFileName»$ host “retail.vnureig.com"
path “/” user “XXXXXXX” password “XXXXXX” with overwrite
store file $«“InsertPathHere:”+mySSFileName»$ host
"ftp.buzzanglepro.com” path “/” user “XXXXX” password “XXXXXX” with
end tell |||