---
id: "d7256a23-29c0-47f0-a64e-e0fc867b76a4"
name: adobe-bridge-windows-filename-copier-script
description: "Generates a Windows-specific Adobe Bridge startup script to copy selected filenames to the clipboard with line breaks and a success alert."
version: "0.1.0"
tags:
  - "adobe-bridge"
  - "jsx-script"
  - "windows"
  - "clipboard"
  - "automation"
triggers:
  - "generate adobe bridge startup script to copy filenames"
  - "windows bridge script copy file names to clipboard"
  - "adobe bridge tools menu script copy names"
---

# 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
1. **Target Environment**: The script must target Adobe Bridge on Windows. Do not include any code related to macOS or Linux.
2. **Menu Placement**: The script must add a menu item under the "Tools" tab.
3. **Selection Handling**: Access selected files using `app.document.selections`.
4. **Filename Processing**:
   - Iterate through the selection.
   - Decode the URI of the filename using `decodeURI()`.
   - Collect filenames into an array.
5. **Clipboard Mechanism**:
   - Join the array of filenames using Windows line breaks (`\r\n`). Do not use commas.
   - Write the joined string to a temporary file (e.g., in `Folder.temp`).
   - Use `app.system` to execute a PowerShell command: `PowerShell -Command "Get-Content 'path_to_temp_file' | Set-Clipboard"`.
   - Remove the temporary file after the operation.
6. **User Feedback**: Display an alert popup (e.g., "File Names Copied to Clipboard") upon successful execution.

# Anti-Patterns
- Do not use `app.setClipboard` as it is not supported in this environment.
- Do not use `echo | clip` directly in the command line as it fails to handle newlines correctly.
- 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


---
Source attribution: ECNU-ICALK
Original project: https://github.com/ECNU-ICALK/AutoSkill
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Gabriel Moreira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: ECNU-ICALK
Original project: https://github.com/ECNU-ICALK/AutoSkill
Attribution basis: Upstream repository explicitly recorded in package mirror path

Fields of work: Design, Development & Engineering
Roles: Frontend Developer, Graphic Designer, UX Designer
Specialties: API
Tools: Adobe Creative Suite, Windows
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 5997e7f8a415ae2aaf0123d5f239eb85669c8f72b72ebaf59cc2b717b8dfc5af
