Unarchive issue...

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Unarchive issue... Wed Apr 16, 2014 9:10 am • by DaMacGuy
I'm running 3.2.7 on OS 10.9.2. My unarchive task have started failing for some reason...

Code: Select all
2014-04-16 08:53:04.476 hazelworker[68303] Could not identify archive type for file: /Users/cwaldrip/Documents/Comics/Convert to Folders/TestFile.cbr


cbr is simply a renamed RAR file. It fails with cbz files, which are just renamed zip files.

This workflow has worked for a long time until recently (possibly a the last Hazel update?).

In the meantime I'm using Open with Application The Unarchiver.app, which works...

-Chris
DaMacGuy
 
Posts: 14
Joined: Wed Jan 11, 2012 4:16 pm

Re: Unarchive issue... Wed Apr 16, 2014 2:54 pm • by Mr_Noodle
There was a change in the last version. There was an issue where Hazel was unpacking Alfred workflow files, which also happened to be zip files. Unfortunately, for me, there are certain file formats that are actually just zip files with a different name. I have to play a guessing game to determine whether it should be treated like an archive or not.

I'll look into tweaking things. If you are ok with using the commandline, can you run the mdls program on one of the cbz files and post the output? I'll use that to see if there's some sort of pattern I can exploit.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Unarchive issue... Wed Apr 16, 2014 4:20 pm • by DaMacGuy
A lot of null and generic stuff, but a few look items look promising....

For CBR files...
kMDItemKind = "ComicBookRAR"
kMDItemContentType = "com.bitcartel.comicbooklover.cbr"

For CBZ files...
kMDItemKind = "ComicBookZIP"
kMDItemContentType ="com.macitbetter.cbz-archive"

That's based on proper file association (default open with) I'm assuming, but I have that setup anyway.

Here's the exact info...
Code: Select all
kMDItemContentCreationDate     = 2014-04-16 20:12:42 +0000
kMDItemContentModificationDate = 2014-04-16 20:12:42 +0000
kMDItemContentType             = "com.bitcartel.comicbooklover.cbr"
kMDItemContentTypeTree         = (
    "com.bitcartel.comicbooklover.cbr",
    "public.data",
    "public.item"
)
kMDItemDateAdded               = 2014-04-16 20:13:21 +0000
kMDItemDisplayName             = "Spells.cbr"
kMDItemFSContentChangeDate     = 2014-04-16 20:12:42 +0000
kMDItemFSCreationDate          = 2014-04-16 20:12:42 +0000
kMDItemFSCreatorCode           = ""
kMDItemFSFinderFlags           = 0
kMDItemFSHasCustomIcon         = (null)
kMDItemFSInvisible             = 0
kMDItemFSIsExtensionHidden     = 0
kMDItemFSIsStationery          = (null)
kMDItemFSLabel                 = 0
kMDItemFSName                  = "Spells.cbr"
kMDItemFSNodeCount             = (null)
kMDItemFSOwnerGroupID          = 20
kMDItemFSOwnerUserID           = 501
kMDItemFSSize                  = 119704
kMDItemFSTypeCode              = ""
kMDItemKind                    = "ComicBookRAR"
kMDItemLogicalSize             = 119704
kMDItemPhysicalSize            = 122880


And...
Code: Select all
kMDItemContentCreationDate     = 2014-04-16 20:12:42 +0000
kMDItemContentModificationDate = 2014-04-16 20:12:42 +0000
kMDItemContentType             = "com.macitbetter.cbz-archive"
kMDItemContentTypeTree         = (
    "com.macitbetter.cbz-archive"
)
kMDItemDateAdded               = 2014-04-16 20:16:04 +0000
kMDItemDisplayName             = "Spells.cbz"
kMDItemFSContentChangeDate     = 2014-04-16 20:12:42 +0000
kMDItemFSCreationDate          = 2014-04-16 20:12:42 +0000
kMDItemFSCreatorCode           = ""
kMDItemFSFinderFlags           = 0
kMDItemFSHasCustomIcon         = (null)
kMDItemFSInvisible             = 0
kMDItemFSIsExtensionHidden     = 0
kMDItemFSIsStationery          = (null)
kMDItemFSLabel                 = 0
kMDItemFSName                  = "Spells.cbz"
kMDItemFSNodeCount             = (null)
kMDItemFSOwnerGroupID          = 20
kMDItemFSOwnerUserID           = 501
kMDItemFSSize                  = 119704
kMDItemFSTypeCode              = ""
kMDItemKind                    = "ComicBookZIP"
kMDItemLogicalSize             = 119704
kMDItemPhysicalSize            = 122880
DaMacGuy
 
Posts: 14
Joined: Wed Jan 11, 2012 4:16 pm

Re: Unarchive issue... Thu Apr 17, 2014 12:21 pm • by Mr_Noodle
Thanks for that. I think I might tweak it so that no matter what kind of file you give the Unarchive action, it will try and unpack it. Only in cases where it finds an archive inside will it use the extra logic to tell whether it is meant to be unpacked.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support