It automates the process of taking a screenshot, searching it immediately with Google Lens, and then deleting the screenshot afterward so you don’t clutter your photos.
What's New
Version 1.0
First release
What it does
6 actions-
Wait
-
Take Screenshot
-
Save to Photo Album
-
Search Image With Lenscom.google.GoogleMobile
-
Wait
-
Delete Photos
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/photos'
#define mac true
#include 'actions/mac'
#define color red
#define glyph magnifyingGlass
wait(2)
const Screenshot = takeInteractiveScreenshot()
const SavedPhotoMedia = savePhoto(Screenshot)
rawAction("com.google.GoogleMobile.SearchImageWithLensIntent", {
"AppIntentDescriptor": "",
"image": "SavedPhotoMedia"
})
wait(2)
deletePhotos(SavedPhotoMedia)
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
You Might Also Like
Advertisement