|
A bundle (or package) is a file system entity in Mac OS X whose key characteristic is that although it is a folder, it is portrayed in the Finder as a file. Bundles are useful because they can contain files and folders inside them which the user doesn’t see or even know about. In fact, the user is generally unconscious of the fact that a bundle is a bundle. Just to give a simple example, a Mac OS X-native application is a bundle. Opening a bundle in the Finder by double-clicking it is like opening an application or document - not like opening a folder. If you want to open a bundle as a folder, control-click the bundle in the Finder, and choose Show Package Contents from the contextual menu. Inside a bundled compiled script or bundled application, when you Show Package Contents, is a Contents folder. Inside that is a Resources folder. That is where you can keep files that need to travel with the bundle.
A bundled compiled script or a bundled application can refer to a file inside its Resources folder using the
|
|||||||||||||||||