Where are package contents stored for a file, or why aren't they visible w/o right clicking the file

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Where are package contents stored for a file, or why aren't they visible w/o right clicking the file
# 1  
Old 05-13-2011
Where are package contents stored for a file, or why aren't they visible w/o right clicking the file

I was wondering about the "Show Package Contents" option in OS X. I have a keynote file that I'm looking at. Exactly where are these contents or its directory stored, because they aren't visible in the Finder window, unless I obviously right click and choose to view them. And I don't think I can find them in the Terminal Application.
# 2  
Old 05-14-2011
Your keynote file is actually a directory, represented by the Finder application as a singe file.
Code:
ls -al test.key
total 280
drwxr-xr-x@  5 xbin  xbin     204 May 14 07:17 .<- Note the d in the file mode for the test.key "file"
drwx------+ 23 xbin  xbin    3774 May 14 07:17 .. 
drwxr-xr-x   2 xbin  xbin     102 May 14 07:17 Contents
drwxr-xr-x   2 xbin  xbin     102 May 14 07:17 QuickLook
-rw-r--r--   1 xbin  xbin  140800 May 14 07:17 index.apxl.gz
drwxr-xr-x   2 xbin  xbin     136 May 14 07:17 thumbs

# 3  
Old 05-27-2011
Also, your Keynote file is a designated as a file bundle. Similar to Application bundles, the designation allows the Finder to address the bundle as "the file".

That is my understanding, but I do not warrant this information as suitable for any purpose, including the purpose for which it was created. Smilie

It is technically a folder with files in it, and as noted, the mechanism to view the contents is to right click and "show contents".

The command line can navigate the structure as one would expect navigation of any folder's contents. Navigationally, the command line doesn't really know much about the "bundle" designation. The Finder does.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies

2. Post Here to Contact Site Administrators and Moderators

Content of posts aren't visible - only subject

Let's see if this works here. (Except I can't post a URL ...) I posted the thread above and you can't see content, only the subject title. Moderator Don Cragun replied to the post in Shell scripting and programming. (2 Replies)
Discussion started by: Dalej
2 Replies

3. Shell Programming and Scripting

Replace partial contents of file with contents read from other file

Hi, I am facing issue while reading data from a file in UNIX. my requirement is to compare two files and for the text pattern matching in the 1st file, replace the contents in second file by the contents of first file from start to the end and write the contents to thrid file. i am able to... (2 Replies)
Discussion started by: seeki
2 Replies

4. Shell Programming and Scripting

Extract rows from file based on row numbers stored in another file

Hi All, I have a file which is like this: rows.dat 1 2 3 4 5 6 3 4 5 6 7 8 7 8 9 0 4 3 2 3 4 5 6 7 1 2 3 4 5 6 I have another file with numbers like these (numbers.txt): 1 3 4 5 I want to read numbers.txt file line by line. The extract the row from rows.dat based on the... (3 Replies)
Discussion started by: shoaibjameel123
3 Replies

5. Shell Programming and Scripting

I want to delete the contents of a file which are matching with contents of other file

Hi, I want to delete the contents of a file which are matching with contents of other file in shell scripting. Ex. file1 sheel,sumit,1,2,3,4,5,6,7,8 sumit,rana,2,3,4,5,6,7,8,9 grade,pass,2,3,4,5,6,232,1,1 name,sur,33,1,4,12,3,5,6,8 sheel,pass,2,3,4,5,6,232,1,1 File2... (3 Replies)
Discussion started by: ranasheel2000
3 Replies

6. UNIX for Advanced & Expert Users

A file system visible for solaris and windows?

Hi, I have a 1TB external iomega hard disk, and I want to plug it to a solaris 8 machine. The problem is that solaris doesn't recognize the NTFS file system partition. I was thinking of formatting it to FAT32, but I would like to know if anyone knows a better file system, considering: - I... (6 Replies)
Discussion started by: Dann-E
6 Replies

7. UNIX for Dummies Questions & Answers

compare 2 file contents , if same delete 2nd file contents

Give shell script....which takes two file names as input and compares the contents, is both are same delete second file's contents..... I try with "diff"...... but confusion how to use "diff" with if ---else Thanking you (5 Replies)
Discussion started by: krishnampkkm
5 Replies

8. Solaris

Junk characters in file not in Solaris, but visible in linux

Hello All, I have a DOS file which I run a DOS 2 UNIX utility on. When run from Solaris, I can view the file perfectly. But, when run from linux, I see a bunch of junk(^@) at the beginning of every line in the file. Does anyone know the cause of this? COMMAND TO CONVERT: tr -d '\015\032'... (7 Replies)
Discussion started by: vada010
7 Replies

9. UNIX for Dummies Questions & Answers

how to open a text file by double clicking on the file name in gtk+

how to open a text file by double clicking on the file name shown in a label widget in gtk+. thanks (0 Replies)
Discussion started by: cy163
0 Replies
Login or Register to Ask a Question