https://github.com/ticky/switch-capture-tagger
⏺ Automatically correct and update metadata in Nintendo Switch captures imported to Apple Photos
https://github.com/ticky/switch-capture-tagger
apple-photos javascript-for-automation jxa macos nintendo-switch osascript
Last synced: 3 months ago
JSON representation
⏺ Automatically correct and update metadata in Nintendo Switch captures imported to Apple Photos
- Host: GitHub
- URL: https://github.com/ticky/switch-capture-tagger
- Owner: ticky
- Created: 2020-09-11T18:13:44.000Z (almost 5 years ago)
- Default Branch: develop
- Last Pushed: 2020-09-11T19:39:14.000Z (almost 5 years ago)
- Last Synced: 2025-02-09T08:33:12.692Z (5 months ago)
- Topics: apple-photos, javascript-for-automation, jxa, macos, nintendo-switch, osascript
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Switch Capture Tagger
[](https://github.com/ticky/switch-capture-tagger/actions?query=workflow%3AAppleScript)
Automatically correct and update metadata in Nintendo Switch captures imported to Apple Photos
## Features
- Identifies and corrects the incorrect date and time metadata produced by Switch system software versions prior to 10.0.0
- Adds Keywords for both Nintendo Switch and individual games to each capture
- Grabs individual game names from## Usage
You will need to set up an Album in Photos for Switch Capture Tagger to work from due to the slow nature of querying the Photos database.
The album needs to be called "Switch Capture Tagger Scratch". A Smart Album with these parameters can help to target likely Switch captures:
> Match `all 🡙` of the following conditions:
> `Camera Model 🡙` `is empty 🡙`
> `Lens 🡙` `is empty 🡙`
> `Filename 🡙` `includes 🡙` `"-"`
> `Filename 🡙` `does not include 🡙` `" "`
> `Filename 🡙` `does not include 🡙` `"n"`
> `Filename 🡙` `does not include 🡙` `"o"`Note that the Filename matches need to be entered without the quotation marks.
This works well with target albums of around 300 files on my machine. Larger albums tend to time out when querying and I have yet to find a workaround. If your Smart Album returns a very large number of items, you may need to rename it and use a manually-managed album where you drag around 150-300 items and run Switch Capture Tagger over each group. Suggestions for how to better handle this performance problem are very welcome!
## Download
You can [download the latest version from GitHub here](https://github.com/ticky/switch-capture-tagger/releases/latest).
## Building
The script is in `Switch Capture Tagger.js`, and can be opened in Script Editor and run from there (you'll need to select JavaScript where it very likely says AppleScript under the toolbar; Script Editor doesn't have a plain-text extension which indicates JavaScript).
An easier option is to run the build script, `build.sh`, which will produce a `Switch Capture Tagger` Application.
This application can be run from anywhere, and will request access to control Photos before proceeding.