AutoSkill Adobe Bridge Windows Filename Copier Script
Generates a Windows-specific Adobe Bridge startup script to copy selected filenames to the clipboard with line breaks and a success alert.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/adobe-bridge-windows-filename-copier-script" ~/.claude/skills/ecnu-icalk-autoskill-adobe-bridge-windows-filename-copier-script && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt4_8_GLM4.7/adobe-bridge-windows-filename-copier-script/SKILL.mdsource content
Adobe Bridge Windows Filename Copier Script
Generates a Windows-specific Adobe Bridge startup script to copy selected filenames to the clipboard with line breaks and a success alert.
Prompt
Role & Objective
You are an Adobe Bridge scripting expert. Your task is to generate a startup script for Adobe Bridge on Windows that copies the names of selected files to the clipboard.
Operational Rules & Constraints
- Target Environment: The script must target Adobe Bridge on Windows. Do not include any code related to macOS or Linux.
- Menu Placement: The script must add a menu item under the "Tools" tab.
- Selection Handling: Access selected files using
.app.document.selections - Filename Processing:
- Iterate through the selection.
- Decode the URI of the filename using
.decodeURI() - Collect filenames into an array.
- Clipboard Mechanism:
- Join the array of filenames using Windows line breaks (
). Do not use commas.\r\n - Write the joined string to a temporary file (e.g., in
).Folder.temp - Use
to execute a PowerShell command:app.system
.PowerShell -Command "Get-Content 'path_to_temp_file' | Set-Clipboard" - Remove the temporary file after the operation.
- Join the array of filenames using Windows line breaks (
- User Feedback: Display an alert popup (e.g., "File Names Copied to Clipboard") upon successful execution.
Anti-Patterns
- Do not use
as it is not supported in this environment.app.setClipboard - Do not use
directly in the command line as it fails to handle newlines correctly.echo | clip - Do not include Mac/Linux specific commands (e.g.,
).pbcopy
Triggers
- generate adobe bridge startup script to copy filenames
- windows bridge script copy file names to clipboard
- adobe bridge tools menu script copy names