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


Click here to return to the '10.6: Another way to view any text file in Quick Look' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Another way to view any text file in Quick Look
Authored by: Sesquipedalian on Jan 15, '10 12:29:04PM

Rather than xattr or SetFile, I would just use this one line AppleScript:

tell application "Finder" to set file type of ((POSIX file "/path/to/file") as alias) to "TEXT"

You could call it from the command line via osascript, or via pretty much any other way you can use AppleScript.



[ Reply to This | # ]