I'm not sure that it is a bug, but more along the lines of Apple's small way to protect Audio CDs from piracy. REALbasic could read Audio CD contents prior to Mac OS X 10.4 Tiger, but Tiger now prevents the Audio CD contents from being accessed via FolderItem.Count.
While that AppleScript may work fine for you, another solution which seems to work well for me (in our Stimulus 4.0 application) is using the Shell to access the count and contents of Audio CDs. I'm not at liberty to share any code from Stimulus (sorry), but if you look at the Shell class documentation and search the NUG archive, that should give you enough ammunition to quickly create some code to do this. Regards, Dave Wooldridge Electric Butterfly http://www.ebutterfly.com ------------------------------------ > Le 23 août 06 à 19:15 Soir, Craig Hoyt a écrit: > >> Several months work is starting to unravel. One big issue I need >> help on. It seems folderitem.count returns 0 on audio cd's and >> therefore can't read the CD directory. Is this an OS problem or RS >> problem? Are there any known workarounds? Help! > > Indeed, that's a strange bug. > > The workaround I've found: > > an appleScript: > > on run {x} > set y to x as integer > tell application "Finder" > set i to count items of disk y > end tell > return i > end > > Call it so: > > dim s as string > > s=MyScript("1") 'The volume number. Or you can pass a path by > modifying the script > > This requires the Finder to be open (but, if it's not, it is opened > when the script runs)._______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives of this list here: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
