# Apple-side setup (Shortcuts) SyncTa needs **no app** on iPhone, iPad or Mac — just four shortcuts. They sync to your other devices through iCloud. | Shortcut | Run it from | What it does | |---|---|---| | **SyncTa Pair** | Once, after `SyncTa pair` on Windows | Scans the QR code and saves the connection settings to iCloud Drive | | **DropTa** | Share sheet (Photos, Files, Safari…); on a Mac also Finder → right-click → Quick Actions | Sends files, photos and shared text (as a `.txt` file) to `Downloads` on Windows, keeping their names | | **CopyTa** | Back Tap, Action button, Control Center, widget; on a Mac the menu bar | Sends the current clipboard text | | **GetTa** | Tap, Back Tap or an automation; on a Mac the menu bar | Copies the Windows clipboard and downloads queued files: photos and videos to **Photos**, everything else to `iCloud Drive/Shortcuts/SyncTa/Inbox`. Then shows a preview whose share button can save anywhere else (*Save to Files*) | Shortcut icons use Apple's built-in glyphs in dark grey (Shortcuts doesn't allow custom images). The first time **GetTa** saves a photo, iOS asks for access to Photos. ## Install the ready-made shortcuts (recommended) 1. On your iPhone, iPad or Mac, open [vapor-ex.github.io/SyncTa](https://vapor-ex.github.io/SyncTa/) (or scan the small QR code in the pairing window) and tap **Add** for **SyncTa Pair**, **DropTa**, **CopyTa** and **GetTa**. Each opens the Shortcuts app at **Add Shortcut**. The signed `.shortcut` files on the [latest release](https://github.com/Vapor-ex/SyncTa/releases/latest) work too. 2. On Windows run `SyncTa pair`, then run **SyncTa Pair** on the iPhone and scan the QR code. The shortcuts sync to your other Apple devices through iCloud, and so does the pairing. No Mac is needed to install them: every release carries the signed files. ### Signing (maintainers) Apple only imports signed shortcuts, and signing needs a Mac signed in to iCloud, so GitHub Actions can't do it. Instead, the signed files are committed to `shortcuts/signed/` and every release attaches them. A Mac is only needed when the shortcuts change: 1. Change `tools/make-shortcuts.py`, run `python tools/make-shortcuts.py`, and commit `shortcuts/unsigned/` (CI fails if they don't match). The output is deterministic. 2. On a Mac: `./shortcuts/release.sh`. It signs the files, records which sources they came from (`shortcuts/signed/SOURCE.sha256`) and opens a pull request. CI warns while the signed copies are older than the sources. 3. Tag the release as usual. 4. Update the iCloud links: on an iPhone or Mac with the new shortcuts, long-press each → **Share → Copy iCloud Link**, and replace the ids in `docs/index.html` and the README. iCloud links are snapshots, so the old ones keep serving the old version. `./shortcuts/sign.sh` alone signs into `shortcuts/signed/` without committing, to try a build: double-click to add on the Mac, or AirDrop to an iPhone or iPad. ### First run: iOS asks before sending anything The first time you run **DropTa**, **CopyTa** or **GetTa**, iOS asks whether the shortcut may send data to your Windows computer (its `.local` name, e.g. `my-pc.local`). This is a standard iOS privacy check for any shortcut that sends data over the network, and SyncTa can't turn it off. - The preview (and **View All**) shows the raw data being sent: your clipboard text or file, and the connection settings from `config.json` (JSON with your Windows computer's address and access token). Looking technical is expected. - Check that the destination is your own computer's name, then choose **Always Allow**. Each shortcut asks once; **Allow Once** means it asks again next time. - iOS may separately ask for clipboard access; choose **Always Allow** there too. - For large files, also turn on **Settings → Shortcuts → Advanced → Allow Sharing Large Amounts of Data**. ## Or build them yourself The rest of this page describes each shortcut action by action — useful if you want to customise them. Values in `«…»` are variables you pick from the *Variables* list in the Shortcuts editor. --- ## 1. SyncTa Pair 1. **Scan QR or Barcode** 2. **Text**: `«QR/Barcode»` (On iPhone the scan result also carries a picture of the code, and *Get Dictionary* would read the picture's metadata instead of the JSON. Taking the text first avoids that.) 3. **Get Dictionary from** `«Text»` 4. **Get Dictionary Value** `syncta` from `«Dictionary»` 5. **If** `«Dictionary Value»` **has any value** 6. → **Set Name** of `«Text»` to `config.json` → turn on *Don't Include File Extension* (Without this, Save File names the text `config.txt` and the other shortcuts can't find it.) 7. → **Save File**: `«Renamed Item»` → turn off *Ask Where to Save*, set *Destination Path* to `SyncTa/config.json`, turn on *Overwrite If File Exists*. This saves into `iCloud Drive/Shortcuts/SyncTa/config.json`, which all other shortcuts read — and which your other Apple devices receive through iCloud. 8. → **Get Dictionary Value** `host` from `«Dictionary»` and **Get Dictionary Value** `setup` 9. → **Open URLs**: `http://«host»:«setup»/ca.cer` 10. → **Show Alert**: *Paired. Install the certificate: Settings → General → VPN & Device Management → SyncTa Local CA → Install. Then Settings → General → About → Certificate Trust Settings → turn on SyncTa Local CA.* 11. **Otherwise** → **Show Alert**: *That is not a SyncTa pairing code.* On a **Mac**, open the downloaded `SyncTa-Local-CA.cer`, and in Keychain Access set *SyncTa Local CA → Trust → Always Trust*. ## Common start (used by the next three shortcuts) Begin each of the following shortcuts with these four actions: 1. **Get File** from Shortcuts folder, path `SyncTa/config.json` (turn on *Error If Not Found*) 2. **Get Dictionary from** `«File»` 3. **Text**: `https://«Dictionary.host»:«Dictionary.port»/api/v1` → rename the variable to **Base** 4. **Text**: `Bearer «Dictionary.token»` → rename the variable to **Auth** Every **Get Contents of URL** below gets a header `Authorization` = `«Auth»`. ## 2. DropTa Shortcut details → turn on **Show in Share Sheet**; accepted types: Images, Files, PDFs, Media, Text, URLs, Rich Text. 1. *Common start* 2. **Repeat with Each** item in `«Shortcut Input»` 3. → **If** `«Repeat Item»` *is* Text (or URL) 4. →→ **Get Contents of URL** `«Base»/clipboard` — Method **POST**, header `Authorization`, Request Body **JSON**: key `text` (Text) = `«Repeat Item»` 5. → **Otherwise** 6. →→ **Get Contents of URL** `«Base»/files` — Method **POST**, header `Authorization`, Request Body **Form**: key `file` (type **File**) = `«Repeat Item»` 7. → **End If** 8. **End Repeat** 9. **Show Notification**: *Sent to «Dictionary.name»* ## 3. CopyTa 1. *Common start* 2. **Get Clipboard** 3. **If** `«Clipboard»` *has any value* 4. → **If** `«Clipboard»` *is* Image 5. →→ **Get Contents of URL** `«Base»/files` — POST, header `Authorization`, Form: `file` (File) = `«Clipboard»` 6. → **Otherwise** 7. →→ **Get Contents of URL** `«Base»/clipboard` — POST, header `Authorization`, JSON: `text` = `«Clipboard»` 8. → **End If** 9. → **Show Notification**: *Clipboard sent* 10. **End If** The first run asks for permission to send data to Windows and to read the clipboard; see [First run](#first-run-ios-asks-before-sending-anything). Bind it to a gesture: **Settings → Accessibility → Touch → Back Tap → Double Tap → CopyTa**. ## 4. GetTa 1. *Common start* 2. **Get Contents of URL** `«Base»/clipboard` — GET, header `Authorization` 3. **If** `«Contents of URL»` *has any value* → **Copy to Clipboard** `«Contents of URL»` → **End If** (Windows returns nothing when its clipboard is empty or holds a password-manager copy.) 4. **Get Contents of URL** `«Base»/queue` — GET, header `Authorization` → rename to **Queue** 5. **Repeat with Each** item in `«Queue»` 6. → **Get Dictionary Value** `name` from `«Repeat Item»` 7. → **URL Encode** `«Dictionary Value»` 8. → **Get Contents of URL** `«Base»/queue/«URL Encoded Text»` — GET, header `Authorization` 9. → **If** `«Contents of URL»` *is* Image → **Save to Photo Album** → **Otherwise** → **Save File** (turn off *Ask Where to Save*, path `SyncTa/Inbox/`) → **End If** 10. → **Get Contents of URL** `«Base»/queue/«URL Encoded Text»` — Method **DELETE**, header `Authorization` 11. **End Repeat** 12. **Show Notification**: *Received «Count of Queue» item(s) from «Dictionary.name»* ### Fetch automatically **Shortcuts → Automation → New Automation → Wi-Fi** → choose your home network → *Run Immediately* → run **GetTa**. Add a second automation for your laptop hotspot if you use one. On iPhone, Back Tap (Triple Tap) or the Action button also work well. ## Troubleshooting - **"The certificate for this server is invalid"** — the certificate is installed but not trusted: Settings → General → About → Certificate Trust Settings. - **"Could not connect"** — the Windows computer and the device must be on the same network (Wi-Fi or the iPhone's hotspot), SyncTa must be running (`SyncTa status`), and Windows Firewall must allow it on private networks. If `.local` names don't resolve on your network, edit `iCloud Drive/Shortcuts/SyncTa/config.json` and replace `host` with one of the addresses listed under `ips`. - **401 Unauthorized** — re-run *SyncTa Pair* (the token on Windows changed).