get file paths

POSIX

tell application "Finder"
set currentFile to (POSIX path of (selection as string))
set the clipboard to currentFile
display dialog currentFile & return & return & (**cont next line**)
"is on the clipboard" as string buttons {"OK"}
(**cont next line**)
giving up after 4 default button 1
end tell

Mac

tell application "Finder"
set currentFile to selection
set the clipboard to the currentFile as string
display dialog (currentFile as string) & return & return &
(**cont next line**)
"is on the clipboard" as string buttons {"OK"}
(**cont next line**)
giving up after 4 default button 1
end tell

Comments

Popular posts from this blog

cURL to REST API

Indesign scripting - negative object reference