Your best friend for file transfer.

Fetch application logoFetch

Toggling preferences using Applescript (4 posts)

  • Started 7 years ago by Jim Brandt
  • Latest reply 7 years ago from Jim Matthews
  • Jim Brandt Member

    Jim,

    I'm uploading video files to multiple locations daily. I currently have the preference "Do not preserve modification dates" unchecked, so my files get uploaded with the original date and time.

    One of these websites says they need me to upload to them with this preference checked, so the date and time of the uploaded file changes to the upload date/time.

    This upload is happening under Applescript. Is there a way to toggle this option for a single upload, without affecting the preference setting? Can it be done for just a single Transfer Window (or a single Transfer)?

    Where do I look to see what preferences I can change under Applescript? The Applescript dictionary doesn't show anything I recognized as relating to preferences and how to change them. Yes, you can do it by recording a script and toggling them manually, but I'm looking for documentation that shows this.

    Thanks,

    Jim Brandt

    Posted 7 years ago #

  • admin Key Master

    Hi,

    This property is listed in the AppleScript dictionary as a property of the application:

    dont preserve modification dates (boolean) : do not preserve the modification dates of transferred files

    In general, the easiest way to figure out how to AppleScript something in Fetch is to click the Record button in Script Editor and then perform the action manually. Toggling that checkbox on and then back off again yields:

    tell application "Fetch"
    activate
    set dont preserve modification dates to true
    set dont preserve modification dates to false
    end tell

    [You don't need the "activate"].

    There isn't a way to toggle the option for a single upload or window; the setting is either on or off for the whole app.

    I hope this helps,

    Jim Matthews
    Fetch Softworks

    Posted 7 years ago #

  • Jim Brandt Member

    So if I toggle it on to send files to this site, and other transactions are going at the same time, to other sites, they'll upload with the modification date changed also?

    Edited 7 years ago #

  • Jim Matthews Administrator

    Yes, that's correct. Uploads will use whatever setting is current.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 7 years ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.