• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Filename of audio CDs modified by Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Filename of audio CDs modified by Finder (From: Martin <email@hidden>)

  • Prev by Date: Pass paramters to application started from login items (in user prefs)
  • Next by Date: Re: Creating an NSTimer subclass
  • Previous by thread: Filename of audio CDs modified by Finder
  • Next by thread: Re: Filename of audio CDs modified by Finder
  • Index(es):
    • Date
    • Thread