Failed to get Music to import to Itune Library

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

Moderator: Mr_Noodle

Failed to get Music to import to Itune Library 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
Tiyako
 
Posts: 8
Joined: Tue Mar 22, 2011 8:00 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11271
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Alright! Mr_Noodle! i will definitely go through that report back with more details~
:mrgreen:
Tiyako
 
Posts: 8
Joined: Tue Mar 22, 2011 8:00 pm

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.
:?
Tiyako
 
Posts: 8
Joined: Tue Mar 22, 2011 8:00 pm

Report back and let me know (a) if that rule matches in the preview and (b) if you can find any log errors. Thanks.
Mr_Noodle
Site Admin
 
Posts: 11271
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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};
}
Tiyako
 
Posts: 8
Joined: Tue Mar 22, 2011 8:00 pm

Wouldn't it be easier to make use of the "Automatically Add to iTunes" folder?
sjk
 
Posts: 332
Joined: Thu Aug 02, 2007 5:43 pm
Location: Eugene

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:
Tiyako
 
Posts: 8
Joined: Tue Mar 22, 2011 8:00 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11271
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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!
Tiyako
 
Posts: 8
Joined: Tue Mar 22, 2011 8:00 pm


Return to Support