seanbmont / flukeformac

Automatically exported from code.google.com/p/flukeformac
0 stars 0 forks source link

Wrong HFS pathnames generated when FileVault is enabled (with solution) #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Enable FileVault.
2. Try to use Fluke on a file inside the home directory.

What is the expected output? What do you see instead?

I expect everything to work nicely but errors occur when Fluke tries to add the 
file to the iTunes library. The GUI version (including the currently latest 
available pre-built package, Fluke 0.2.5b) words the error thus:

GUIFormatError: app(u'/Applications/iTunes.app').add

The non-GUI version (the one in the trunk of the Subversion repository) words 
the same error differently:

CommandError: Command failed:
        OSERROR: -1407
        MESSAGE: Expected a folder, got a file 
        COMMAND: app(u'/Applications/iTunes.app').add([u'Macintosh HD:Users:<username>:<path>'], to=app.library_playlists[1])

What version of the product are you using? On what operating system?

Fluke 0.2.5b and the one from the Subversion trunk on Mac OS X 10.6.5.

Please provide any additional information below.

The bug is in fluke.itunes.getASPath: it tries to decide how to name the volume 
in the HFS path through a dirty hack. Instead of this and manually converting 
the POSIX path to HFS in the first place, it should just import mactypes and 
return mactypes.Alias(path). (mactypes is included in the appscript package.)

Original issue reported on code.google.com by chortos@inbox.lv on 12 Dec 2010 at 9:57

GoogleCodeExporter commented 8 years ago
Of course, I forgot to mention the version of iTunes I am using, as the 
standard question only asks about the product and the OS: 10.1, but it does not 
matter.

Original comment by chortos@inbox.lv on 12 Dec 2010 at 9:59