https://github.com/timxor/screenshot-auto-renamer
Renames your screenshot filenames as more descriptive
https://github.com/timxor/screenshot-auto-renamer
macos screenshot screenshot-utility screenshots utility
Last synced: 7 months ago
JSON representation
Renames your screenshot filenames as more descriptive
- Host: GitHub
- URL: https://github.com/timxor/screenshot-auto-renamer
- Owner: timxor
- License: apache-2.0
- Created: 2025-01-26T02:33:43.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-28T04:38:00.000Z (9 months ago)
- Last Synced: 2025-02-07T08:20:50.982Z (9 months ago)
- Topics: macos, screenshot, screenshot-utility, screenshots, utility
- Language: Swift
- Homepage: https://github.com/timxor/screenshot-auto-renamer
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# screenshot-auto-renamer
Screenshot Auto Renamer is a utility tat automatically renames your screenshot filenames as more descriptive.
## Compile and run the Swift application
Compile with a package:
```
swift build
```Run the application:
```
swift run
```Example output:
```
Screenshot saved to: /Users/timbo/Pictures/Terminal_2025-01-26_18-53-24.png
```## step 2
- run the program when the screenshot command is detected from the keyboard
## errors
```
main.swift:7:19: warning: immutable value 'screen' was never used; consider replacing with '_' or removing it
5 |
6 | func captureScreen() {
7 | guard let screen = NSScreen.main,
| `- warning: immutable value 'screen' was never used; consider replacing with '_' or removing it
8 | let cgImage = CGDisplayCreateImage(CGMainDisplayID()) else {
9 | print("Could not capture screen")
``````
'main' attribute cannot be used in a module that contains top-level code
```### Desired solution
```
How do I use ScreenCaptureKit and SCScreenshotManager swift framework/class on my MacBook pro to detect when i do a screenshot with keyboard commands: "Command + Shift +3", "Command + Shift + 4" or others, to name/rename the screenshot files from "Screenshot 2025-01-25 at 7.42.11 PM.png" to "Safari-Sat-Jan-25-2025-at-7.44.51pm.png".
```