This script finds the number of the selected Adobe Stock clip and copies it to clipboard for a quick search.
Requirements:
Shortcut for renaming clip needs to be set to CMD + SHIFT + OPTION + R
Important:
Delay to wait for rename window is set to 200ms. Increase it if you have issues
Delay to wait for clipboard update is 100ms. Unlikely to cause issues, but can be increased if needed.
How to use it
In Automator, add a quick action and add use Run AppleScript, then add the code below.
I have added a keyboard shortcut to run the script, so I just need to select the clip in the timeline and press the button on the Streamdeck, then paste it on the Adobe Stock search bar.
-- Press Command, Option, Shift, R
tell application "System Events"
key down command
key down option
key down shift
key code 15 -- 'R' key
key up command
key up option
key up shift
end tell
-- Wait for the window to appear
delay 0.2 -- 200 milliseconds
-- Copy the pre-selected text to the clipboard
tell application "System Events"
keystroke "c" using {command down} -- Command + C to copy
end tell
-- Wait briefly for the clipboard to update
delay 0.1
-- Extract the text, process it, and copy the result to clipboard
try
tell application "System Events"
-- Get the text from the clipboard
set theText to the clipboard
-- Use shell script to extract the numbers
set extracted to do shell script "echo " & quoted form of theText & " | sed -n 's/.*AdobeStock_\\([0-9]*\\)_Video.*/\\1/p'"
-- Copy the result to the clipboard
set the clipboard to extracted
end tell
-- Display a macOS notification
display notification "Copied: " & extracted with title "Adobe Stock Script"
on error errMsg
display dialog "Error: " & errMsg
end try
-- Close the window with Escape
tell application "System Events"
key code 53 -- Escape key
end tell
Adobe allows you to filter out Gen AI from search results, but the filter doesn't stick and goes back to default for every new page.
This Chrome extension manually adds the filter to the address when browsing the Adobe Stock website. This effectively filters out Gen AI results.
How to use
Just save the code below in two files. One named background.js and one as manifest.json
Then on Chrome go to Extensions > Manage Extensions and toggle Developer Mode on the top right.
Go to the top left and select "Load unpacked" and browse to the folder with the extension. That's it.
Permissions
The extension will run locally and it only needs permissions to read your tabs to see if you are on Adobe Stock and to edit the address.
No data collection or remote access of any kind
background.js
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
if (
changeInfo.status === 'complete' &&
tab.url &&
tab.url.includes('stock.adobe.com') &&
new URL(tab.url).pathname.includes('/search')
) {
const url = new URL(tab.url);
// Check if the parameter already exists
if (!url.searchParams.has('filters[gentech]')) {
// Append the parameter if it's missing
url.searchParams.append('filters[gentech]', 'exclude');
// Only update the tab if the URL has actually changed
if (url.toString() !== tab.url) {
chrome.tabs.update(tabId, { url: url.toString() });
}
}
}
});
manifest.json
{
"manifest_version": 3,
"name": "Adobe Stock AI Remover",
"version": "1.1",
"description": "Appends a filter to Adobe Stock URLs to remove Gen AI from results.",
"permissions": [
"tabs"
],
"background": {
"service_worker": "background.js"
},
"host_permissions": [
"https://stock.adobe.com/*"
]
}