Your best friend for file transfer.

Fetch application logoFetch

File date comparisons using AppleScript (4 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 21 years ago by gordonb
  • Latest reply 21 years ago from Jim Matthews
  • gordonb Member

    I wrote an script to upload new or changed pages to one of my sites. The script works by comparing file dates on the remote server to dates on the local server. It worked fine in Fetch 4.02, but on using 4.03 for the first time it now tries to upload the entire site - about 5,000 files. Replacing 4.03 with 4.02 fixes the problem. I thought it might be a date formatting thing, so I changed the default date format on my system (OS 10.2) to the US format but it didn't make any difference. Has something changed in 4.03 to do with retrieving/storing file attributes?

    Thanks for your help.

    Posted 21 years ago #

  • Jim Matthews Administrator

    There were bug fixes to the Mirror Folder command in 4.0.3 but I can't think of anything that would lead to this behavior. Can you make a small (e.g. one file) test case that demonstrates the problem, and send me the transcripts (from 4.0.2 and 4.0.3)?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 21 years ago #

  • gordonb Member

    I managed to produce a cut down version of the Applescript that only operated on the first folder in the sequence. Unfortunately this folder holds 1221 items so the transcripts are rather long. I amended 1 .htm file in the local folder (to change the updated date) and ran it using 4.02 - it uploaded the one file and stopped as it should. I then ran the script with 4.03 and stopped it after a number of uploads as it was clear it was going to work through the whole folder. I can't spot any obvious differences betweeen the two transcripts.

    I can send you the transcripts and the AppleScript if you're interested - but I'm not sure where I should send them.

    Thanks

    Gordon Butler

    Posted 21 years ago #

  • Jim Matthews Administrator

    You can send it to support@fetchsoftworks.com -- thanks.

    Jim Matthews
    Fetch Softworks

    Posted 21 years ago #

Topic closed

This topic has been closed.