What is the file path name on mac?

I'm using an application on my mac and need to specify where on my hard drive the application should save the output. I've tried using a number of different path names, but none of them work. Here are a couple of the ones I have tried. I dragged the file to Terminal to get the path name, but it does not seem to be correct.


$/Users/bd/Documents/Thesis/Thesis\ Data\ 20171125/OMS.sav/OMS.sav

Macintosh HD/Users/bd/Documents/Thesis/Thesis\ Data\ 20171125/OMS.sav


Can you please tell me what the correct path should be? This is my first mac.


Thank you.

MacBook Pro

Posted on Dec 18, 2017 9:19 AM

Reply
5 replies

Dec 18, 2017 10:22 AM in response to dbu1

The samples you show are both pathnames of a particular FILE.


To specify 'where to save', just as iSystem suggests, you would generally omit the actual filename, which leaves the pathname of a DIRECTORY, where your file (any name) can be saved.


--------

Almost all Mac Applications use a standard dialog-box, which CAN allow you to specify the save-location easily. The default looks like this, which is extremely limited:

User uploaded file

when you click the discloser triangle to the right of the proposed filename, the controls, including drop-down boxes (this one wants to save in the "screen shots" folder) appear:

User uploaded file


.


.

Dec 18, 2017 10:40 AM in response to dbu1

well that changes things a bit.


The first extra \ you are seeing is to escape the trailing space character from "Thesis Data", so that it will not be parsed as a separate token. If you change the "Thesis Data" directory name to ThesisData or Thesis_ Data, that extra escape complexity would disappear. Or you can use quotes as I did above.


You may have a directory or filename reference that starts with a blank character messing things up. I think I see an extra \ character, not sure.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

What is the file path name on mac?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.