Created
March 14, 2013 16:24
-
-
Save poritsky/5162788 to your computer and use it in GitHub Desktop.
For use with TextExpander. Get contents of selected file, copy and paste. I have it set with ",,pbpaste" in TextExpander.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Finder" | |
set sel to the selection as text | |
set fPath to quoted form of POSIX path of sel | |
do shell script ("cat " & fPath & " | pbcopy && pbpaste") | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment