Skip to content

Instantly share code, notes, and snippets.

View florianwestermann's full-sized avatar

Florian Westermann florianwestermann

View GitHub Profile
on run {input, parameters}
set output to {}
repeat with f in input
set f to replace(POSIX path of f, "/Volumes/", "afp://myserver/")
set f to replace(f, " ", "%20")
set end of output to f
end repeat
set text item delimiters to linefeed
set the clipboard to (output as text)
end run