{"id":21711239,"url":"https://github.com/renderghost/macos-folder-sync","last_synced_at":"2025-03-20T18:17:31.987Z","repository":{"id":199786132,"uuid":"703732783","full_name":"renderghost/macos-folder-sync","owner":"renderghost","description":"Automatically sync folders on MacOS","archived":false,"fork":false,"pushed_at":"2023-10-12T15:09:33.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T16:42:18.538Z","etag":null,"topics":["applescript","file-syncing","macos"],"latest_commit_sha":null,"homepage":"","language":"AppleScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/renderghost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-11T19:58:54.000Z","updated_at":"2023-10-11T21:12:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d16f16d-0b28-4be7-9732-a1d5ae432f77","html_url":"https://github.com/renderghost/macos-folder-sync","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"580777faca1c6827ea5b914347d61fcca4b965d3"},"previous_names":["renderedghost/macos-hd-sync","renderghost/macos-folder-sync","renderedghost/macos-folder-sync"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renderghost%2Fmacos-folder-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renderghost%2Fmacos-folder-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renderghost%2Fmacos-folder-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renderghost%2Fmacos-folder-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renderghost","download_url":"https://codeload.github.com/renderghost/macos-folder-sync/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244666588,"owners_count":20490287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["applescript","file-syncing","macos"],"created_at":"2024-11-25T23:20:35.040Z","updated_at":"2025-03-20T18:17:31.967Z","avatar_url":"https://github.com/renderghost.png","language":"AppleScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# macOS Folder Sync Automation\n\n\u003e Automatically sync folders on MacOS\n\n## Overview\n\nThis repository contains an AppleScript for automating folder synchronization between between folders on macOS.\n\nThe script ensures that the folders are kept in sync every time the external drive is connected.\n\n## Features\n\n- Copies new files from the source folder to the destination folder\n- Skips files that already exist in the destination folder\n- Deletes files in the destination folder that no longer exist in the source folder\n\n## Requirements\n\n- macOS\n- AppleScript\n- launchd (for automation)\n\n## Setup\n\n### Define the Paths\n\nEdit the `SyncMyFiles.applescript` file to specify the paths of your source and destination folders.\n\n```applescript\n-- Define source folder on the internal drive\nset sourceFolder to \"/source\"\n-- Define destination folder on the external drive\nset destinationFolder to \"/destination\"\n```\n\n### Compile the Script\n\nCompile the modified AppleScript as an `SyncMyFiles.scpt` file on your Mac.\n\n### Sync the `.plist` file for `launchd`\n\nCopy the `SyncMyFiles.plist` file to `~/Library/LaunchAgents/` to automate the script execution when the external drive is connected.\n\n```bash\ncp ~/code/macos-folder-sync/SyncMyFiles.plist ~/Library/LaunchAgents/\n```\n\nRun the following command in Terminal to load the `SyncMyFiles.plist` file:\n\n```bash\nlaunchctl load ~/Library/LaunchAgents/SyncMyFiles.plist\n```\n\n## Usage\n\n### Automated\n\n1. Connect your external drive.\n2. The script should run automatically, syncing the specified folders.\n3. That's it.\n\n### Manual\n\n```bash\nosascript ~/code/macos-folder-sync/SyncMyFiles.scpt\n```\n\n## To Do\n\n- [ ] Confirm start on-run\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenderghost%2Fmacos-folder-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenderghost%2Fmacos-folder-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenderghost%2Fmacos-folder-sync/lists"}