Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Put a file's path on the clipboard via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Put a file's path on the clipboard via AppleScript
Authored by: Occam on Apr 19, '07 09:44:56AM

The following script saved as an application will put an active link into clipboard which if pasted into say, TextEdit' will create a link in TextEdit which will open the linked file.

on open {dropped_item}
tell application "Finder" to set the clipboard to "fttp:///" & (POSIX path of (the selection as alias))
end open



[ Reply to This | # ]