Empty folder delete rule - strange behaviour

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

Moderator: Mr_Noodle

Empty folder delete rule - strange behaviour Sun Sep 28, 2014 2:43 pm • by MacOCD
I created a rule to delete empty folders/subfolder left behind after a different rule imports MP3 files to iTunes then moves them.

I modified my "go into subfolders" rule to ignore folders that are empty (0 bytes)
Image

I then created a different rule to clean up by deleting empty folders.

Image

This rule doesn't get implemented, no matter how long I wait. However, if I go to the import folder in finder and do a "Get Info" on any of the folders in there (empty or not), suddenly my rule runs and all the empty folders are deleted.

It's as if the folder size isn't ever rechecked after the files have been removed.

Does anyone know how I can make this rule run automatically?

[EDIT] I've discovered that if I manually delete items myself making a folder empty that folder will be moved to trash, but if Hazel actions move/delete items making a folder empty it will not be deleted.

[EDIT2] Hopefully Links to second picture now correct :)


Thanks,

Mark.
Last edited by MacOCD on Mon Sep 29, 2014 3:40 pm, edited 1 time in total.
MacOCD
 
Posts: 44
Joined: Fri Sep 26, 2014 11:02 am

I can't see the second image so I can't really tell you what's going on. Can you re-post that?
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Strange, I could see it ok. I've re-uploaded is that better? Thanks.
MacOCD
 
Posts: 44
Joined: Fri Sep 26, 2014 11:02 am

I can see it now, thanks. When you view it in the preview, does the empty folder show up as matching the "Delete empty folder" rule?
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Empty folder delete rule - strange behaviour Tue Sep 30, 2014 12:32 pm • by MacOCD
Mr_Noodle wrote:...does the empty folder show up as matching the "Delete empty folder" rule?


Yes it does match that rule, however actually starting the Hazel prefpane makes this rule work as I expect it to.

Experiment:-

Copied a folder of MP3 files 2 folders deep into my "Import" folder.
eg. ImportMusic/Artist/Album/MultipleTracks.mp3

The tracks all import to iTunes just fine using my import rule and are then moved (with the same file hierarchy) into my 'Imported' folder. Left behind in the 'ImportMusic' folder are the empty folders Artist/Album/.

I waited 10 minutes and mouthing happened. I start the Hazel prefpane and within 2 minutes the Artist folder and it's Album subfolder have both been moved to trash. I didn't need to check the match for it to work.

Also, if I 'Get Info' in Finder one of the folders the rule will work.

Left alone the folders will stay there, it seems Hazel doesn't know the folder is now empty until Hazel.prefpane is started or Get Info is done on one of the folders.

I've repeated this many times.
MacOCD
 
Posts: 44
Joined: Fri Sep 26, 2014 11:02 am

Bringing up the pref pane always triggers a run of all folders so that shouldn't be a surprised. I'm not sure how "Get Info" is doing it though. I suggest checking the logs. Go to the "Info" pane and click "View Log". Send the logs, noting which folder you expected to be deleted and approximately when.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Empty folder delete rule - strange behaviour Wed Oct 01, 2014 10:35 am • by MacOCD
Around 11:17am I dragged a folder called "Soundgarden", which contained a subfolder called "1988 Ultramega OK" (with 13 MP3 tracks in it) into my "iTuned Import" folder.

Straight away the "iTunes Import" rule ran as I would have expected it to.

Code: Select all
2014-10-01 11:17:36.767 hazelworker[50297] Processing folder iTunes Import
2014-10-01 11:17:38.956 hazelworker[50297] Soundgarden: Rule Go Into Subfolder matched.
2014-10-01 11:17:38.957 hazelworker[50297] 1988 - Ultramega OK: Rule Go Into Subfolder matched.
2014-10-01 11:17:39.040 hazelworker[50297] 01 Flower - Soundgarden (1988 - Ultramega OK).mp3: Rule Import to iTunes matched.
2014-10-01 11:17:43.367 hazelworker[50297] /Users/mark/Music/iTunes Import/Soundgarden/1988 - Ultramega OK/01 Flower - Soundgarden (1988 - Ultramega OK).mp3 added to iTunes playlist Music
2014-10-01 11:17:44.206 hazelworker[50297] [File Event] File moved: 01 Flower - Soundgarden (1988 - Ultramega OK).mp3 moved from folder /Users/mark/Music/iTunes Import/Soundgarden/1988 - Ultramega OK to folder /Users/mark/Music/iTunes Imported.
   <SNIP> SAME Action for All Tracks
2014-10-01 11:18:06.229 hazelworker[50297] [File Event] File moved: 13 One Minute of Silence - Soundgarden (1988 - Ultramega OK).mp3 moved from folder /Users/mark/Music/iTunes Import/Soundgarden/1988 - Ultramega OK to folder /Users/mark/Music/iTunes Imported.
2014-10-01 11:18:08.774 hazelworker[50297] Done processing folder iTunes Import


All the MP3s were imported into iTunes and subsequently moved to a separate "iTunes Imported" folder. This left an empty "Artist" folder (holding an empty "Album" subfolder) inside my "iTunes Import" folder. I expected my "Delete Empty Folders" rule to kick in at this point as the "Album" & "Artist" folders were now 0bytes empty, but the rule didn't trigger.

I then left the computer idle for a couple of hours to see if the rule would eventually run but it didn't.

Around 13:47 I opened Finder on my Mac and right clicked the outer "Artist" folder and selected "Get Info". Immediately Hazel ran the "Delete Empty Folders" rule, correctly deleting both the "Album" subfolder and the outer "Artist folder.

Code: Select all
2014-10-01 13:47:47.055 hazelworker[54313] ###main load address: 0x105a3d000
2014-10-01 13:47:47.464 hazelworker[54313] ###Noodle load address: 0x105b18000
2014-10-01 13:47:47.464 hazelworker[54313] ###CK load address: 0x105adb000
2014-10-01 13:47:50.319 hazelworker[54313] Processing folder iTunes Import
2014-10-01 13:47:53.033 hazelworker[54313] Soundgarden: Rule Delete Empty Folder matched.
2014-10-01 13:47:57.807 hazelworker[54313] [File Event] File moved: Soundgarden moved from folder /Users/mark/Music/iTunes Import to folder /Users/markrward/.Trash.
2014-10-01 13:47:58.057 hazelworker[54313] Done processing folder iTunes Import
2014-10-01 13:47:59.287 hazelworker[54318] ###main load address: 0x10dae6000
2014-10-01 13:47:59.288 hazelworker[54318] ###Noodle load address: 0x10dbbf000
2014-10-01 13:47:59.288 hazelworker[54318] ###CK load address: 0x10db84000
2014-10-01 13:48:00.016 hazelworker[54318] Processing folder iTunes Import
2014-10-01 13:48:02.221 hazelworker[54318] Done processing folder iTunes Import


No interaction was made with Hazel that could have triggered this rule processing.

It's very odd.
MacOCD
 
Posts: 44
Joined: Fri Sep 26, 2014 11:02 am

Can you turn on debug mode as described here: viewtopic.php?f=4&t=296 ?

That should produce more verbose logs including, hopefully, more information about file events that trigger Hazel.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

[WITH DEBUG ENABLED...]

I copy a folder of MP3 files into "iTunes Import" folder and the "Import to iTunes" rule triggers as before.

Code: Select all
2014-10-01 18:35:40.339 hazelworker[61041] ###main load address: 0x105709000
2014-10-01 18:35:40.916 hazelworker[61041] ###Noodle load address: 0x1057e4000
2014-10-01 18:35:40.916 hazelworker[61041] ###CK load address: 0x1057a5000
2014-10-01 18:35:41.471 hazelworker[61041] DEBUG: Unexpected type for Mail download URL: (null)
2014-10-01 18:35:41.583 hazelworker[61041] DEBUG: Could not scan past browser.download.dir preference
2014-10-01 18:35:42.956 hazelworker[61041] Processing folder iTunes Import
2014-10-01 18:35:42.956 hazelworker[61041] DEBUG: Initialized
2014-10-01 18:35:42.956 hazelworker[61041] DEBUG: Pausing to wait for things to settle down.
2014-10-01 18:35:44.956 hazelworker[61041] DEBUG: Processing directories: (
   "/Users/mark/Music/iTunes Import"
)
2014-10-01 18:35:45.158 hazelworker[61041] DEBUG: About to process directory /Users/mark/Music/iTunes Import
2014-10-01 18:35:45.162 hazelworker[61041] DEBUG: Received file event: {
   date = "2014-10-01 17:35:39 +0000";
   path = "<ComNoodlesoft_NoodlePathSet: 0x7fe323d32900> - (\n    \"/Users/mark/Music/iTunes Import\"\n)";
}
2014-10-01 18:35:45.164 hazelworker[61041] DEBUG: .DS_Store: File is hidden/invisible. Skipping.
2014-10-01 18:35:45.166 hazelworker[61041] Linkin Park: Rule Go Into Subfolder matched.
2014-10-01 18:35:45.166 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.folder" AND sizeObject >[cd] 0 B}:{(recurse:,{
})}
2014-10-01 18:35:45.166 hazelworker[61041] DEBUG: Recursing into directory: /Users/mark/Music/iTunes Import/Linkin Park
2014-10-01 18:35:45.167 hazelworker[61041] 2007 - Minutes to Midnight: Rule Go Into Subfolder matched.
2014-10-01 18:35:45.167 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.folder" AND sizeObject >[cd] 0 B}:{(recurse:,{
})}
2014-10-01 18:35:45.167 hazelworker[61041] DEBUG: Recursing into directory: /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight
2014-10-01 18:35:45.361 hazelworker[61041] 01 Wake - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:35:45.361 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:35:49.421 hazelworker[61041] Error adding track /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/01 Wake - Linkin Park (2007 - Minutes to Midnight).mp3 to playlist Music: Error Domain=NSOSStatusErrorDomain Code=-54 "The operation couldn’t be completed. (OSStatus error -54.)" (permErr: permissions error (on file open)) UserInfo=0x7fe3250002a0 {ErrorNumber=-54}
2014-10-01 18:35:49.623 hazelworker[61041] [Error] iTunes import failed: Could not add file /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/01 Wake - Linkin Park (2007 - Minutes to Midnight).mp3 to iTunes.
2014-10-01 18:35:49.633 hazelworker[61041] DEBUG: Tapping error retry sequence
2014-10-01 18:35:49.646 hazelworker[61041] 02 Given Up - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:35:49.646 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:35:50.739 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/02 Given Up - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:35:51.395 hazelworker[61041] [File Event] File moved: 02 Given Up - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:35:51.397 hazelworker[61041] DEBUG: Action changed file: 02 Given Up - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:35:51.413 hazelworker[61041] 03 Leave out All the Rest - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:35:51.413 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:35:52.618 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/03 Leave out All the Rest - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:35:52.627 hazelworker[61041] [File Event] File moved: 03 Leave out All the Rest - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:35:52.637 hazelworker[61041] DEBUG: Action changed file: 03 Leave out All the Rest - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:35:52.650 hazelworker[61041] 04 Bleed It Out - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:35:52.650 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:35:54.633 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/04 Bleed It Out - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:35:54.640 hazelworker[61041] DEBUG: Error closing lock on destination /Users/mark/Music/iTunes Imported/Linkin Park/2007 - Minutes to Midnight/04 Bleed It Out - Linkin Park (2007 - Minutes to Midnight).mp3: Bad file descriptor
2014-10-01 18:35:54.640 hazelworker[61041] [File Event] File moved: 04 Bleed It Out - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:35:54.647 hazelworker[61041] DEBUG: Action changed file: 04 Bleed It Out - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:35:54.658 hazelworker[61041] 05 Shadow of the Day - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:35:54.658 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:35:56.147 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/05 Shadow of the Day - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:35:56.157 hazelworker[61041] DEBUG: Error closing lock on destination /Users/mark/Music/iTunes Imported/Linkin Park/2007 - Minutes to Midnight/05 Shadow of the Day - Linkin Park (2007 - Minutes to Midnight).mp3: Bad file descriptor
2014-10-01 18:35:56.157 hazelworker[61041] [File Event] File moved: 05 Shadow of the Day - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:35:56.166 hazelworker[61041] DEBUG: Action changed file: 05 Shadow of the Day - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:35:56.183 hazelworker[61041] 06 What I've Done - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:35:56.183 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:35:57.401 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/06 What I've Done - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:35:57.414 hazelworker[61041] DEBUG: Error closing lock on destination /Users/mark/Music/iTunes Imported/Linkin Park/2007 - Minutes to Midnight/06 What I've Done - Linkin Park (2007 - Minutes to Midnight).mp3: Bad file descriptor
2014-10-01 18:35:57.415 hazelworker[61041] [File Event] File moved: 06 What I've Done - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:35:57.418 hazelworker[61041] DEBUG: Action changed file: 06 What I've Done - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:35:57.431 hazelworker[61041] 07 Hands Held High - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:35:57.431 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:35:59.277 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/07 Hands Held High - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:35:59.299 hazelworker[61041] DEBUG: Error closing lock on destination /Users/mark/Music/iTunes Imported/Linkin Park/2007 - Minutes to Midnight/07 Hands Held High - Linkin Park (2007 - Minutes to Midnight).mp3: Bad file descriptor
2014-10-01 18:35:59.299 hazelworker[61041] [File Event] File moved: 07 Hands Held High - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:35:59.306 hazelworker[61041] DEBUG: Action changed file: 07 Hands Held High - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:35:59.318 hazelworker[61041] 08 No More Sorrow - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:35:59.318 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:36:00.475 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/08 No More Sorrow - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:36:00.487 hazelworker[61041] DEBUG: Error closing lock on destination /Users/mark/Music/iTunes Imported/Linkin Park/2007 - Minutes to Midnight/08 No More Sorrow - Linkin Park (2007 - Minutes to Midnight).mp3: Bad file descriptor
2014-10-01 18:36:00.488 hazelworker[61041] [File Event] File moved: 08 No More Sorrow - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:36:00.492 hazelworker[61041] DEBUG: Action changed file: 08 No More Sorrow - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:36:00.505 hazelworker[61041] 09 Valentine's Day - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:36:00.505 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:36:01.540 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/09 Valentine's Day - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:36:01.547 hazelworker[61041] DEBUG: Error closing lock on destination /Users/mark/Music/iTunes Imported/Linkin Park/2007 - Minutes to Midnight/09 Valentine's Day - Linkin Park (2007 - Minutes to Midnight).mp3: Bad file descriptor
2014-10-01 18:36:01.548 hazelworker[61041] [File Event] File moved: 09 Valentine's Day - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:36:01.552 hazelworker[61041] DEBUG: Action changed file: 09 Valentine's Day - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:36:01.561 hazelworker[61041] 10 In Between - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:36:01.561 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:36:03.096 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/10 In Between - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:36:03.243 hazelworker[61041] [File Event] File moved: 10 In Between - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:36:03.438 hazelworker[61041] DEBUG: Action changed file: 10 In Between - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:36:03.441 hazelworker[61041] 11 In Pieces - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:36:03.441 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:36:06.150 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/11 In Pieces - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:36:06.207 hazelworker[61041] [File Event] File moved: 11 In Pieces - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:36:06.211 hazelworker[61041] DEBUG: Action changed file: 11 In Pieces - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:36:08.602 hazelworker[61041] 12 The Little Things Give You Away - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:36:08.602 hazelworker[61041] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{typeObject isType: "public.audio" AND ANY displayExtensions ==[cd] "mp3"}:{(itunes:Music,{
})(move:/Users/mark/Music/iTunes Imported,{
   keepFolderStructure = 2;
   replaceExisting = 0;
   throwAwayDupes = 0;
})}
2014-10-01 18:36:11.184 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/12 The Little Things Give You Away - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:36:11.196 hazelworker[61041] [File Event] File moved: 12 The Little Things Give You Away - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:36:11.200 hazelworker[61041] DEBUG: Action changed file: 12 The Little Things Give You Away - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:36:12.027 hazelworker[61041] DEBUG: Writing out DB file: /Users/mark/Music/iTunes Import
2014-10-01 18:36:15.293 hazelworker[61041] DEBUG: Directory /Users/mark/Music/iTunes Import processed in 30.134099 seconds
2014-10-01 18:36:15.293 hazelworker[61041] Warning: error fire time is in the past: 2014-10-01 17:35:54 +0000
2014-10-01 18:36:15.294 hazelworker[61041] DEBUG: Sleeping
2014-10-01 18:36:17.394 hazelworker[61041] DEBUG: About to process directory /Users/mark/Music/iTunes Import
2014-10-01 18:36:17.396 hazelworker[61041] DEBUG: .DS_Store: File is hidden/invisible. Skipping.
2014-10-01 18:36:17.397 hazelworker[61041] Linkin Park: Rule Go Into Subfolder matched.
2014-10-01 18:36:17.397 hazelworker[61041] DEBUG: Recursing into directory: /Users/mark/Music/iTunes Import/Linkin Park
2014-10-01 18:36:17.397 hazelworker[61041] 2007 - Minutes to Midnight: Rule Go Into Subfolder matched.
2014-10-01 18:36:17.397 hazelworker[61041] DEBUG: Recursing into directory: /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight
2014-10-01 18:36:17.402 hazelworker[61041] 01 Wake - Linkin Park (2007 - Minutes to Midnight).mp3: Rule Import to iTunes matched.
2014-10-01 18:36:17.402 hazelworker[61041] DEBUG: Got error last time. Re-trying actions.
2014-10-01 18:36:17.908 hazelworker[61041] /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight/01 Wake - Linkin Park (2007 - Minutes to Midnight).mp3 added to iTunes playlist Music
2014-10-01 18:36:17.916 hazelworker[61041] DEBUG: Error closing lock on destination /Users/mark/Music/iTunes Imported/Linkin Park/2007 - Minutes to Midnight/01 Wake - Linkin Park (2007 - Minutes to Midnight).mp3: Bad file descriptor
2014-10-01 18:36:17.916 hazelworker[61041] [File Event] File moved: 01 Wake - Linkin Park (2007 - Minutes to Midnight).mp3 moved from folder /Users/mark/Music/iTunes Import/Linkin Park/2007 - Minutes to Midnight to folder /Users/mark/Music/iTunes Imported.
2014-10-01 18:36:17.925 hazelworker[61041] DEBUG: Action changed file: 01 Wake - Linkin Park (2007 - Minutes to Midnight).mp3
2014-10-01 18:36:17.930 hazelworker[61041] DEBUG: Writing out DB file: /Users/mark/Music/iTunes Import


I wait some time to make sure empty folders won't delete on their own...

Then I open the "iTunes Import" folder in Finder... Nothing happens... Before doing a "Get Info" on the now visible "Artist" folder I click the little triangle to reveal what may be inside it (nothing) and now the event triggers because I looked inside the "Artist" folder in finder.

Code: Select all
2014-10-01 18:50:25.190 hazelworker[61396] ###main load address: 0x10f1cb000
2014-10-01 18:50:25.191 hazelworker[61396] ###Noodle load address: 0x10f2a8000
2014-10-01 18:50:25.191 hazelworker[61396] ###CK load address: 0x10f269000
2014-10-01 18:50:25.421 hazelworker[61396] DEBUG: Unexpected type for Mail download URL: (null)
2014-10-01 18:50:25.825 hazelworker[61396] DEBUG: Could not scan past browser.download.dir preference
2014-10-01 18:50:26.182 hazelworker[61396] Processing folder iTunes Import
2014-10-01 18:50:26.182 hazelworker[61396] DEBUG: Initialized
2014-10-01 18:50:26.182 hazelworker[61396] DEBUG: Pausing to wait for things to settle down.
2014-10-01 18:50:28.281 hazelworker[61396] DEBUG: Processing directories: (
   "/Users/mark/Music/iTunes Import"
)
2014-10-01 18:50:28.282 hazelworker[61396] DEBUG: About to process directory /Users/mark/Music/iTunes Import
2014-10-01 18:50:28.285 hazelworker[61396] DEBUG: Received file event: {
   date = "2014-10-01 17:50:25 +0000";
   path = "<ComNoodlesoft_NoodlePathSet: 0x7ff338527660> - (\n    \"/Users/mark/Music/iTunes Import\"\n)";
}
2014-10-01 18:50:28.287 hazelworker[61396] DEBUG: .DS_Store: File is hidden/invisible. Skipping.
2014-10-01 18:50:28.289 hazelworker[61396] Linkin Park: Rule Delete Empty Folder matched.
2014-10-01 18:50:28.289 hazelworker[61396] DEBUG: New rule signature. Executing actions.
Old signature: {typeObject isType: "public.folder" AND sizeObject >[cd] 0 B}:{(recurse:,{
})}
New Signature:{typeObject isType: "public.folder" AND sizeObject ==[cd] 0 B}:{(move:/Users/mark/.Trash,{
})}
2014-10-01 18:50:28.671 hazelworker[61396] [File Event] File moved: Linkin Park moved from folder /Users/mark/Music/iTunes Import to folder /Users/mark/.Trash.
2014-10-01 18:50:28.673 hazelworker[61396] DEBUG: Action changed file: Linkin Park
2014-10-01 18:50:28.693 hazelworker[61396] DEBUG: Writing out DB file: /Users/mark/Music/iTunes Import
2014-10-01 18:50:28.696 hazelworker[61396] DEBUG: Directory /Users/mark/Music/iTunes Import processed in 0.413429 seconds
2014-10-01 18:50:28.696 hazelworker[61396] DEBUG: Sending metrics to scheduler. Next scheduled run:
2014-10-01 18:50:28.698 hazelworker[61396] Done processing folder iTunes Import
2014-10-01 18:50:29.758 hazelworker[61401] ###main load address: 0x10e692000
2014-10-01 18:50:29.759 hazelworker[61401] ###Noodle load address: 0x10e775000
2014-10-01 18:50:29.759 hazelworker[61401] ###CK load address: 0x10e733000
2014-10-01 18:50:29.789 hazelworker[61401] DEBUG: Unexpected type for Mail download URL: (null)
2014-10-01 18:50:29.791 hazelworker[61401] DEBUG: Could not scan past browser.download.dir preference
2014-10-01 18:50:30.098 hazelworker[61401] Processing folder iTunes Import
2014-10-01 18:50:30.099 hazelworker[61401] DEBUG: Initialized
2014-10-01 18:50:30.099 hazelworker[61401] DEBUG: Pausing to wait for things to settle down.
2014-10-01 18:50:32.196 hazelworker[61401] DEBUG: Processing directories: (
   "/Users/mark/Music/iTunes Import"
)
2014-10-01 18:50:32.197 hazelworker[61401] DEBUG: About to process directory /Users/mark/Music/iTunes Import
2014-10-01 18:50:32.199 hazelworker[61401] DEBUG: Received file event: {
   date = "2014-10-01 17:50:29 +0000";
   path = "<ComNoodlesoft_NoodlePathSet: 0x7fe5e2c35d30> - (\n    \"/Users/mark/Music/iTunes Import\"\n)";
}
2014-10-01 18:50:32.201 hazelworker[61401] DEBUG: .DS_Store: File is hidden/invisible. Skipping.
2014-10-01 18:50:32.201 hazelworker[61401] DEBUG: Writing out DB file: /Users/mark/Music/iTunes Import
2014-10-01 18:50:32.203 hazelworker[61401] DEBUG: Directory /Users/mark/Music/iTunes Import processed in 0.006207 seconds
2014-10-01 18:50:32.203 hazelworker[61401] DEBUG: Sending metrics to scheduler. Next scheduled run:
2014-10-01 18:50:32.204 hazelworker[61401] Done processing folder iTunes Import
MacOCD
 
Posts: 44
Joined: Fri Sep 26, 2014 11:02 am

Thanks. Looking into it. Hopefully should have a fix in the next version (will probably be in the next beta patch if you are running that).
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Thanks. Looking into it. Hopefully should have a fix in the next version (will probably be in the next beta patch if you are running that).


I'm using 3.2.7 (build 1099), I've only been using Hazel for 5 days, I'm still evaluating but I'll definitely be buying. I hadn't noticed the beta forums section. I'll definitely take a look at the next beta version to see if it solves my issue.
MacOCD
 
Posts: 44
Joined: Fri Sep 26, 2014 11:02 am

BTW, the beta is, well, beta, so it may be buggy and may not be the best thing for a new user. Just thought I'd warn you.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support