Can I use TNEF's Enough from the command line or Terminal?
There is no direct support for command line execution (in the UNIX traditional sense of standard inputs/outputs, etc.) but with the "open" command line tool you can send an open command (aka. open Apple Event) to TNEF's Enough. If you have the preferences for drag and drop opening (a "drag and drop" on an application is the Finder sending an open Apple Event) of files set to automatic expanding then the embedded files will be automatically expanded. Here's a sample:
open -a "TNEF's Enough" winmail.dat |
Because TNEF's Enough uses the Apple preferences system you can also take advantage of the "defaults" command line tool to set values in the preferences file. For example, if you wish to have TNEF's Enough behave one way for true drag and drop you can set that in the preferences of the application and use the "defaults" command line tool to set another option for command line use and then return the original values. The first command example will set the automatic expanding of Apple Events to true (1) and the second command will turn the automatic expanding off (0).
defaults write com.joshjacob.TNEFsEnough AppleEventAuto 1
defaults write com.joshjacob.TNEFsEnough AppleEventAuto 0 |