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 > Mac OS X > Invisable Files

Invisable Files
Thread Tools
Mac Elite
Join Date: Dec 2002
Location: Silicon Valley
Status: Offline
Reply With Quote
Feb 16, 2003, 01:17 PM
 
How can you make for example a JPG or PDF file invisable in OSX?

I wanna know this so I can make a DMG and have a background image, but I don't want to me able to see the image file with it.

Thanks!
Anyone who would letterspace blackletter would steal sheep. - Frederic Goudy
     
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Feb 16, 2003, 01:32 PM
 
Originally posted by Webscreamer:
How can you make for example a JPG or PDF file invisable in OSX?

I wanna know this so I can make a DMG and have a background image, but I don't want to me able to see the image file with it.

Thanks!
You can rename the image and put a dot '.' character at the very begining of the name. Or you can set the 'Invisible' attribute with :

/Developer/Tools/SetFile -a V <filename>

where <filename> is the name of your image on the dmg (you can drag&drop the file to get the full pathname). SetFile part of the developer tools.
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Feb 16, 2003, 01:51 PM
 
There are three ways to do this.

The first, and easiest, is to put a dot at the beginning of a filename. It's a very old Unix convention to make such files invisible, and OSX follows that convention.

The second way, as pat++ said, is to use the SetFile tool. This only works if you have the Developer Tools installed, however.

The third way is to create a file called ".hidden" in the same folder as the image, and put the image's name into the file. Note that .hidden will itself be invisible, because of the dot at the start of the filename.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Mac Elite
Join Date: Dec 2002
Location: Silicon Valley
Status: Offline
Reply With Quote
Feb 16, 2003, 02:35 PM
 
awsome!

thanks. Along the same lines. how do you make the DMG have an Agreement when u mount it like Apple stuff has?
Anyone who would letterspace blackletter would steal sheep. - Frederic Goudy
     
Mac Elite
Join Date: Dec 2002
Location: Silicon Valley
Status: Offline
Reply With Quote
Feb 16, 2003, 04:28 PM
 
it won't let me put a "." in front of files or folder because it is "Reserved for system files" it says.

hmmmmmmmm....
Anyone who would letterspace blackletter would steal sheep. - Frederic Goudy
     
Mac Elite
Join Date: Sep 2000
Location: Canada
Status: Offline
Reply With Quote
Feb 16, 2003, 04:49 PM
 
You have to use Terminal. Open Terminal (found in /Applications/Utilities/) and change to the directory the image file is in by typing:

cd <directory>

You can simply drag-and-drop the directory/folder onto the Terminal window instead of typing its location.

After that, type:

mv image.jpg .image.jpg

"mv" means move; "image.jpg" is the current name of the image file; and, ".image.jpg" is the new name with a period in front.
     
   
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 07:20 AM.
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