Default way to refer to 'Documents' folder?

  McNewOne 09:15 13 Feb 2018
Answered

I know very little about Macs, bear with me !

I'm producing a Windows application that will run under Wine on Macs. The application has file selection dialogs which by default start in the application folder (ie deep inside Wine's folder structure) but I'd like them to start in the Mac's 'Document' folder. I can navigate out to /users/documents to get to the Mac's documents folder but I'm not sure this will always be the right path.

In Windows there are constants such as CSIDLMYDOCUMENTS which can be used with API calls like folder = SHGetSpecialFolderLocation(0, CSIDLMYDOCUMENTS , idList) to always give you the 'My documents' folder, wherever it is

Is there a foolproof way to refer to the 'Documents' folder on a Mac?

  Forum Editor 11:31 13 Feb 2018
Answer
  McNewOne 22:33 13 Feb 2018

That seems to be what I was looking for, Thanks

What is Markdown?

Markdown lets you add more formatting to your post. Simply type in your post and it will display as written.

If you wish to add bold or italic characters, add a hyperlink to another website, a heading or a horizontal line, simply use the relevent icons above the text input field.

A preview of your post will appear in the grey box below. If you make a change and you're not happy, simply press the back arrow icon to undo.

Post a Reply

4500

Elsewhere on IDG sites

Microsoft Surface Book 2 15in review

Iglooghost's hyper new music video gives a mutant take on Monument Valley

The best Amazon Prime Day Apple deals 2018

Comment ajouter de la musique à une présentation Google Slides ?