Page 1 of 1

Failed to get Music to import to Itune Library

PostPosted: Tue Mar 29, 2011 4:10 am
by Tiyako
Hi all,
I'm having trouble getting the rule to work as expected , any experienced user can lend me a hand? :D
1) i have told Hazel to move Music related folder to a folder else where
2) This is the rule i've set at the destinated folder that won't import automatically to Itune library:
I have a rule to "Run rules on folder content" to apple rules to subfolders
then a rule as follows:
code:
If "all" of the following conditions are met
Kind if Music
Date Last Modified is Today

Do the following:
Import into iTunes to playlist: Library

--------------------------------------

Thank you very much!
Tiyako

Re: Failed to get Music to import to Itune Library

PostPosted: Tue Mar 29, 2011 2:57 pm
by Mr_Noodle
Check the "Troubleshooting tips" that's stuck near the top of the forum. Go through that and report back at what step things seem to go wrong for you.

Re: Failed to get Music to import to Itune Library

PostPosted: Tue Mar 29, 2011 6:33 pm
by Tiyako
Alright! Mr_Noodle! i will definitely go through that report back with more details~
:mrgreen:

Re: Failed to get Music to import to Itune Library

PostPosted: Tue Mar 29, 2011 6:46 pm
by Tiyako
My intention is to move any newly downloaded music from Downloads Folder to a "Music" folder, then have it import onto iTunes.

In my Downloads folder , i have run rules on folder contents, Then i have the folllowing rules:

Code:

If "all" of the following conditions are met

Subfolder Depth is greater than 0
Kind if Music

Do the following:
Run AppleScript embedded script : tell application "Finder"
set posix_parent_dir to POSIX path of (container of (item theFile) as text)

end tell
return {hazelSwitchFile:posix_parent_dir}

Move File to folder "New Music"

I then have a rule to ove Music on the Top level:
Code:
If all of the following conditions are met

Subfolder Depth is 0
Kind is Music

Do the following:
Move File to folder "New Music"

Then i have 2 rules setup for the "New Music" folder
The first rule is to run rules on folder contents
Then i have the following rule:

Code:
If all of the following conditions are met

Kind is Music
Date Last Modified is Today

Do the following:
Import into iTunes to playlist Music

------------------------------------------------------------------------------------

I have check everything experimented with...
It all works with newly downloaded music to download and move them to "new music" folder...but it failes to import it to iTunes Library even thought the folder falls into the "Date Last Modified is Today" criteria.
:?

Re: Failed to get Music to import to Itune Library

PostPosted: Thu Mar 31, 2011 12:38 pm
by Mr_Noodle
Report back and let me know (a) if that rule matches in the preview and (b) if you can find any log errors. Thanks.

Re: Failed to get Music to import to Itune Library

PostPosted: Thu Mar 31, 2011 4:20 pm
by Tiyako
a) The Rules all matchs in preview

b) There is an error when Hazel tries to import to iTunes for each song that satisfied the rule


2011-03-31 13:15:40.475 hazelfolderwatch[15376] 10 - Surrounded (Or Spiraling).mp3: Rule Import music to Itune if modified today matched.
2011-03-31 13:15:41.033 hazelfolderwatch[15376] [Error] iTunes import failed: Could not add file /Users/sectionindividual/Music/DL music/Silversun Pickups - Swoon 2009 [Mp3-320Kbps][IN]/10 - Surrounded (Or Spiraling).mp3 to iTunes.
2011-03-31 13:15:41.034 hazelfolderwatch[15376] iTunes import error: {
NSLocalizedDescription = "iTunes got an error: File permission error.";
NSLocalizedFailureReason = "File permission error.";
OSAScriptErrorAppAddressKey = <NSAppleEventDescriptor: 'psn '("iTunes")>;
OSAScriptErrorAppNameKey = iTunes;
OSAScriptErrorBriefMessageKey = "File permission error.";
OSAScriptErrorMessageKey = "iTunes got an error: File permission error.";
OSAScriptErrorNumberKey = -54;
OSAScriptErrorRangeKey = NSRange: {0, 0};
}

Re: Failed to get Music to import to Itune Library

PostPosted: Thu Mar 31, 2011 7:12 pm
by sjk
Wouldn't it be easier to make use of the "Automatically Add to iTunes" folder?

Re: Failed to get Music to import to Itune Library

PostPosted: Fri Apr 01, 2011 12:35 am
by Tiyako
hello! sjk!
Thank you! lol~ stupid me..i didn't even know such function exists for iTune...lol!
:lol:
i guess i'll just tell Hazel to put the songs there and let iTune do its own thing!

Thank you so much! sjk
:oops:

Re: Failed to get Music to import to Itune Library

PostPosted: Fri Apr 01, 2011 1:11 pm
by Mr_Noodle
That error shows a permissions problem. Not sure why that is but I'd check the permissions on the file as well as the folder it's in. That said, if sjk's solution works for you then run with that.

Re: Failed to get Music to import to Itune Library

PostPosted: Fri Apr 01, 2011 8:14 pm
by Tiyako
thank you for the information! Mr_Noodle!
i will definitely try and figure if i can solve the permission problem first or not...~ and i will also try the alternative method too! :D

Thank you so much for your help!
Hazel definitely a very useful program for everyday use!