Re: Filename of audio CDs modified by Finder
Re: Filename of audio CDs modified by Finder
- Subject: Re: Filename of audio CDs modified by Finder
- From: David Duncan <email@hidden>
- Date: Thu, 9 Nov 2006 09:53:04 -0800
On Nov 9, 2006, at 9:18 AM, Martin wrote:
My app has a notification registered for whenever a volume mounts.
If it's an audio CD, then it loads all the tracks' filenames in an
array. Then it does stuff with the files...
The problem is : when an audio CD is inserted,
- a notification is posted, my app captures it, and loads the
filenames (usually Track 1.aiff, etc...)
- the Finder looks at CDDB for the tracks' real name and renames
the tracks, but also the volume's name
- when I want to deal with these audio files from my app, the
filenames don't match because the Finder modified them
What's your advice ?
Should I wait for the tracks to be renamed (and in that case, is
there a notification posted when the trackers are renamed) ?
Or should I fill my array with something else than the path (inode,
file descriptor) ?
Use something other than a path. I would recommend aliases. Collect
aliases for each of the items on the CD, then you can resolve them to
paths at a later date and never worry about anything getting renamed.
--
David Duncan
Apple DTS Quartz and Printing
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden