homeresourcesSys utilsWorkflowsCopy path

italian

Copy POSIX path(s) / Copy Finder path(s) (OS X 10.4 or newer)
Two Automator workflows ready to become Finder plugins.
The path of selected Finder item, in POIX (Unix) style or Finder-like, is copied into the clipboard.
In casa more items are selected all o their paths are copied, one per paragraph.

The scripts

Both the script can be downloaded, ready, in the side column.

Copy POSIX path(s).workflow

on run {input, parameters}
set mylist to {}
repeat with elem in input
try
set the end of mylist to (POSIX path of elem)
end try
end repeat
set oldtid to AppleScript's text item delimiters
set AppleScript's text item delimiters to {return}
set flatlist to mylist as text
set AppleScript's text item delimiters to oldtid
tell application "Finder" to set the clipboard to flatlist
end run


Copy Finder path(s).workflow

on run {input, parameters}
set mylist to {}
repeat with elem in input
try
tell application "Finder" to set the end of mylist to (elem as text)
end try
end repeat
set oldtid to AppleScript's text item delimiters
set AppleScript's text item delimiters to {return}
set flatlist to mylist as text
set AppleScript's text item delimiters to oldtid
tell application "Finder" to set the clipboard to flatlist
end run

© and Credits

Original software by faqintosh.com
Author: Marco Balestra
This software is povided "as is", without warranty.
It is freeware, but not public domain: in order to redistribute it author's clearance is required.

© and Credits

Files

Copy POSIX path(s)

Copy Finder path(s)

Context Menu

How to place a workflow in Finder context menu

Put a script in Finder contextual menu (Mac OS X 10.4 or earlier)