Date: Mon, 9 Aug 1999 14:04:31 -0700 (PDT) From: Deirdre Saoirse Subject: Un-binhexing things MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO Content-Length: 658 Lines: 24 I thought I'd share with y'all a little script I wrote this afternoon to remove the binhex encoding from a file sent by a Mac. As Macs have resource and data forks, this can't be guaranteed to do everything necessary, but it is probably all you need. #!/usr/bin/python import binhex, sys def main(): if len(sys.argv) < 3: print 'usage: %s input_file output_file' % sys.argv[0] sys.exit(1) binhex.hexbin (sys.argv[1], sys.argv[2]) if __name__ == '__main__': main()