Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > convert fspec to a file path

convert fspec to a file path
Thread Tools
Mac Enthusiast
Join Date: Oct 2001
Status: Offline
Reply With Quote
Sep 27, 2002, 02:56 AM
 
I need to find out where a user keeps their iTunes library. This info is in their com.apple.itunes.plist. This info is stored as an fspec, which i think is some type of data format made by alias manager. I need to convert this into a string.

how does one convert an fspec to a file path?
     
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Sep 27, 2002, 03:19 AM
 
Take a look in Core Foundations' URL handling routines. There's a converter in there (can't remember the name of the function).
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Sep 27, 2002, 04:47 PM
 
FSSpecs are created and handled via the File Manager, as are FSRefs. See the Carbon reference manual for more information (and there are some functions for creating CFURLs from FSRefs and vice versa in CoreFoundation, which you might find useful).
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2