• 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
Hard disk partition name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hard disk partition name


  • Subject: Hard disk partition name
  • From: Gideon King <email@hidden>
  • Date: Fri, 7 May 2004 09:46:32 +1000

I am doing some work where I need to call Applescript from Cocoa, and as part of that, I need to tell it to open a file using the old style syntax "Macintosh HD:Users:fred:file.ext". Now I can get the user's home directory by calling NSHomeDirectory(), but that doesn't include the partition name (in this case "Macintosh HD").

How do I get the name of the partition so I can tell AppleScript the right thing? Are there any gotchas for network mounted directories etc?

Thanks

Gideon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Hard disk partition name
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: User defaults not setting...
  • Next by Date: NSMovieView and strange image
  • Previous by thread: Re: Memory management (release)
  • Next by thread: Re: Hard disk partition name
  • Index(es):
    • Date
    • Thread