On Sep 26, 2011, at 22:24, David Crowe wrote:
If I copy a list of files to the clipboard I can get the full path of the first one by:
{.snip.}
But what I really want is to get all the file paths. Is that possible?
______________________________________________________________________
Hey David,
Any special reason you need to copy them to the clipboard first? If not try this.
--
Best Regards,
Chris
______________________________________________________________________
tell application "Finder"
try
set fSel to selection as alias list
if fSel ≠ {} then
set {oldTIDS, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
set filePaths to fSel as string
set AppleScript's text item delimiters to oldTIDS
end if
filePaths
on error errMsg number errNum
set {cr, sep} to {return, "------------------------------------------"}
set e to sep & cr & "Error: " & errMsg & cr & sep & cr & "Error Number: " & errNum & cr & sep
beep
display dialog e
end try
end tell