Copy Filename

Summary: Copies the filenames of the selected records to the clipboard.
Requires: EagleFiler
Install Location: ~/Library/Scripts/Applications/EagleFiler/
Last Modified: 2019-10-02

Description

This script copies the Unix-style filenames of the selected records, separated by returns. So, for example, if the filename is displayed with a “/” in EagleFiler and the Finder, the copied text will have a “:”.

Installation Instructions · Download in Compiled Format · Download in Text Format

Script

tell application "EagleFiler"
    
set _records to selected records of browser window 1
    
set _lines to {}
    
repeat with _record in _records
        
copy _record's filename to end of _lines
    
end repeat
    
set AppleScript's text item delimiters to return
    
set _text to _lines as text
    
set the clipboard to _text
end tell