Copy File Path

Summary: Copies the file paths of the selected records to the clipboard.
Requires: EagleFiler
Install Location: ~/Library/Scripts/Applications/EagleFiler/
Last Modified: 2012-02-09


This script copies the POSIX paths of the selected records, separated by returns.

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


tell application "EagleFiler"
set _records to selected records of browser window 1
set _lines to {}
repeat with _record in _records
set _file to _record's file
set _path to _file's POSIX path
copy _path 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