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
on alfred_script(q) | |
# set q to text returned of (display dialog "q" default answer "") | |
# (the above line can be uncommented if you want to use the script as an application or something similar) | |
if q is "read" then | |
# read file | |
tell application "Finder" | |
set ffile to selection as text | |
set ffile to quoted form of POSIX path of ffile | |
set the clipboard to (do shell script "cat " & ffile) | |
end tell |
NewerOlder