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


Click here to return to the '10.4: List contents of .zip archives with Automator' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: List contents of .zip archives with Automator
Authored by: peterwor on Aug 01, '06 04:44:43PM

BIZARRE! When I invoke this automator action I get a textedit (or even Textwrangler) display with 'foreign' (as in japanees or gibberish). Even when I try and display the file in another application, except PathFinder the contents aren't ASCII. Has anyone else seen this? Do I have some issue with my deafult character set?
Any help ?

TIA,
Peter



[ Reply to This | # ]
10.4: List contents of .zip archives with Automator
Authored by: jvr on Aug 01, '06 06:25:48PM

That's odd. You're the second person that has mentioned a problem like this. The only thing I can think of to check would be to look under TextEdit -> Preferences, and see what font is set as default for plain text files.



[ Reply to This | # ]
10.4: List contents of .zip archives with Automator
Authored by: KeithGarner on Aug 02, '06 09:01:08AM

I'm also getting the chinese giberish. I tweaked the preferces for TextEdit to make the default text files and the encoding of text files to be Western-1. However, I'm still getting the giverish. Jumping to the command line I see:

kgarner@oracle [666]:file Temp Archive List.txt
Temp Archive List.txt: Little-endian UTF-16 Unicode character data, with very long lines, with no line terminators

That is not what i changed the default too, and even if it was, I would assume TextEdit should be able to read back in what it wrote. I'm a bit stymied as to what the problem could be. I'd like to use this method as this is the prefered way to do it. However, I found a work around.

Steps 1 and 2 are mostly the same as above, except you change #2 to: /usr/local/bin/als "$@" > ~/Desktop/Temp Archive List.txt Step three then becomes "Finder > Get Specified Finder Items" and you tell it the Temp Archive.txt file. The final step of open with the default application is the same.

Another change I made (but I tested with your original unzip -l) was to use atool which makes this this automation more useful as the atools recognize a large amount of archive formats.

(And yes, that was really the 666th command of that shell, I honestly didn't doctor that.)



[ Reply to This | # ]
10.4: List contents of .zip archives with Automator
Authored by: dan55304 on Aug 02, '06 07:41:47AM

I have asian test also



[ Reply to This | # ]
10.4: List contents of .zip archives with Automator
Authored by: magnamous on Aug 02, '06 02:15:01PM

The problem might be in TextEdit's preferences. I had that problem once when I had TextEdit set to force plain text files to open as UTF-8 instead of an automatically-chosen encoding. You might try changing the setting to automatic. To do it, hit command-comma in TextEdit, choose the "Open and Save" tab, and under the heading that says "Plain text file encoding", choose "Automatic" for the item marked "Opening files:"

If your setting is already marked "Automatic" then try clicking the item in the list called "Customize Encodings List..." and choose the one marked "Western (ASCII)". Perhaps then the results will show up correctly.

Just FYI, though: generally it's best to keep the setting on Automatic. Otherwise, plain text files in other encodings won't show correctly. If yours doesn't work on Automatic, I have no idea what the problem might be.



[ Reply to This | # ]