Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dark.deadpool

macrumors newbie
Original poster
Nov 24, 2005
7
0
Hello, I am learning HTML and basic webdesign, and is considerably new to macs. I was wondering how the file path on macs works. For example, if I have a file in the "home" section of OSX, how do I specify that file?

Thank you in advance.
 
Drag the file into a safari window to see it's path. Here's an example of what a path would be to something in your user folder:

file:///Users/Username/file.jpg
 
Home folders exist in the "Users" folder, which in turn exists in the the root folder of your hard drive, so a full file path to something in the home folder would look like: /Users/erendiox/Stuff.mov. A file on the desktop would look like /Users/erendiox/Desktop/Stuff.mov. One thing to keep in mind is that you have to be ABSOLUTELY EXACT when writing a file path, including captial letters and puntuation marks, or it won't work. You can experiment with this by using the finder. Use the Go>Go to Folder from the drop down menu and type in a file/folder path to open it.
 
Another thing worth noting is you can abbreviate the location of your home folder with a tilde (~). So a file on your desktop could be shown as ~/Desktop/somefile.mov (don't use that on webpages though).
 
Wow, lots of help quickly.

Thank you so much for all the help. I had another question, I was wondering why this is so.

I wrote a bit of html to test my skills. On my mac using textedit, it didn't work (!!all!! of the html shows up including the <stuff in these brackets>).

I imputted the same text into notepad on a pc, and it worked fine.

I'm 100 percent sure that I saved it as .html, and I used the pulldown menu to save it at .html.

I would much prefer to use my mac for making the website (obviously) but need to solve this little hiccup.

Thanks in advance for your advice.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.