Error while relocating ("filename" couldn't be moved to "Folder".) "(null)"
I am trying to relocate all my referenced files from my HD to a NAS.
For a number of images I get the error :
Error while relocating ("filename" couldn't be moved to "Folder".) "(null)"
I have been checking the Aperture Log and found things like:
Jan 5 22:03:37 big-mac.fritz.box Aperture[730]: could not set attributes com.apple.metadata:kMDItemDownloadedDate on destination file descriptor: Invalid argument: Invalid argument
Jan 5 22:03:37 big-mac kernel[0]: Aperture[730] Unable to quarantine `/Volumes/imacjan/Pictures/Aperture_Ref_Files/Fotoos_Jan/2012/2012 Diversen/evelien.jpg': 22 (error suppressed)
Jan 5 22:03:37 big-mac.fritz.box Aperture[730]: could not set attributes com.apple.metadata:kMDItemWhereFroms on destination file descriptor: Invalid argument: Invalid argument
Jan 5 22:03:37 big-mac.fritz.box Aperture[730]: error processing extended attributes: Invalid argument
From here I dived into the xattr "thing".
Apparently Mac OSX is setting extra attributes on files, besided the normal UNIX attributes.
So I opened a Terminal session and gave the command:
xattr /Users/imacjan/Pictures/Referenced\ Files/Fotoos\ Jan/2012/2012\ Diversen/eve*.*
which resulted in:
com.apple.FinderInfo
com.apple.metadata:kMDItemDownloadedDate
com.apple.metadata:kMDItemWhereFroms
Then I did my normal :
ls -l /Users/imacjan/Pictures/Referenced\ Files/Fotoos\ Jan/2012/2012\ Diversen/eve*.*
which resulted in :
-rw-r--r--@ 1 imacjan staff 39963 Dec 25 2011 /Users/imacjan/Pictures/Referenced Files/Fotoos Jan/2012/2012 Diversen/evelien.jpg
Looked quite normal to me, accept for the "@". Apperently thay is the sign that there are extended attributes
So then I gave:
ls -l -@ /Users/imacjan/Pictures/Referenced\ Files/Fotoos\ Jan/2012/2012\ Diversen/eve*.*
Which resulted in:
-rw-r--r--@ 1 imacjan staff 39963 Dec 25 2011 /Users/imacjan/Pictures/Referenced Files/Fotoos Jan/2012/2012 Diversen/evelien.jpg
com.apple.FinderInfo 32
com.apple.metadata:kMDItemDownloadedDate 53
com.apple.metadata:kMDItemWhereFroms 156
Quetion 1 : does anybody know where I can find what value 32 for com.apple.FinderInfo means ? And for the other extra attributes?
Next, I suspected the values of the extra attributes were preventing Aperture from relocating the imagel.
So I proceeded with :
xattr -c /Users/imacjan/Pictures/Referenced\ Files/Fotoos\ Jan/2012/2012\ Diversen/eve*.*
I went back to Aperture and now the relocating went fine.
It seems that all the images that my Aperture cannot relocate, are images that I downloaded from internet (sometimes nicked from a Facebook page, sometimes otherwise) and then imported into Aperture.
I can manipulate them, I can export a version, I just cannot export the original file and thus I cannot reloctate them either.
Question 2 : Is this normal behavior, or is this a bug in Aperture and should I file a bugreport?
Question 3 : Is it save for me to use the "attr -c" command to clear all extra attributes?
Thanks in advance
Jan