Your best friend for file transfer.

Fetch application logoFetch

Losing Resource Fork uploading files (3 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 13 years ago by CHRIS_DPS
  • Latest reply 13 years ago from CHRIS_DPS
  • CHRIS_DPS Member

    I have created an FTP folder on a Windows and a try to upload a Creator2 document (filename is 1234). It seems to lose its resource fork. When I download it, the file no longer has the Creator2 icon and there's no resource fork. I've set up an Internet File Mapping for Creator2 and that doesn't seem to help. I am going to check MacWindows.com also to see if I can find anything (ie. the FTP folder needs Mac attributes maybe). However, if you can give me some direction, that would be great.

    One other quick question, in AppleScript, what would the command be to verify if a remote file exists? I've tried

    if exists remote file "ftp://N.N.N.N/file"

    and that always returns false.

    Thanks again for all your help,

    Chris Capobianco

    Posted 13 years ago #

  • Jim Matthews Administrator

    Just to clarify, a file's icon on the Mac isn't determined by the resource fork, it's usually determined by the file's type and creator codes. So the trick is getting your file to have the same type/creator after you transfer it to and from a server that it had when you started. The way to do this is to give the file name a suffix that is associated with that type/creator pair. I don't know what the standard file name suffix is for Creator2 documents, but imagine that it is .cr2. Then you would make sure that your Creator2 documents had names ending in .cr2, and that there was a Suffix Mapping entry in Fetch that mapped .cr2 to the right type and creator. The Suffix Mapping topic in Fetch Help has more information.

    As for the AppleScript question, I think you'd want to do something like this:

    open url "ftp://N.N.N.N/"
    if exists remote file "file" then

    Jim Matthews
    Fetch Softworks

    Posted 13 years ago #

  • CHRIS_DPS Member

    Thanks again, Jim, for your helpful response. Happy Holidays.

    Chris Capobianco

    Originally posted by JimMatthews:

    Just to clarify, a file's icon on the Mac isn't determined by the resource fork, it's usually determined by the file's type and creator codes. So the trick is getting your file to have the same type/creator after you transfer it to and from a server that it had when you started. The way to do this is to give the file name a suffix that is associated with that type/creator pair. I don't know what the standard file name suffix is for Creator2 documents, but imagine that it is .cr2. Then you would make sure that your Creator2 documents had names ending in .cr2, and that there was a Suffix Mapping entry in Fetch that mapped .cr2 to the right type and creator. The Suffix Mapping topic in Fetch Help has more information.

    As for the AppleScript question, I think you'd want to do something like this:

    open url "ftp://N.N.N.N/"
    if exists remote file "file" then

    Jim Matthews
    Fetch Softworks

    Posted 13 years ago #

Topic closed

This topic has been closed.