Editing Package Sources

Once a package source exists for the files you want to package, you can do the following to edit it with Composer:

  • Add files by dragging them into Composer from the Finder.

  • Delete files that should not be included in the package.

  • Change privileges on a file or folder.

  • Restore files that were deleted from the package source.

In addition to viewing files or folders through the Composer interface, you can view this information in the Finder or using Quick Look.

The following table explains how to quickly perform simple changes to files and folders in a package:

File ChangeAction

Add files

Drag the files you want to add to your package source from the Finder into the Package Contents pane in Composer.

Delete files

In the Package Contents pane, select the items you want to delete from the package source and choose File > Delete from the menu bar.

View files using the Finder

In the Package Contents pane, select the items you want to preview, and then choose File > Reveal in the Finder from the menu bar.

View files using Quick Look

In the Package Contents pane, select the items you want to preview, and then choose File > Quick Look from the menu bar or press the Space bar.

Change file privileges

Select a file or folder in the Package Contents pane in Composer to display its privileges in the bottom of the window. You can change the privileges using this display. Changes are saved automatically. If the selected item is a folder, you can apply the privileges that exist on the folder to each enclosed item by clicking the Action.

Restoring Deleted Files or Folders to a Package Source

If you delete a file or folder from the Package Contents pane, it may be possible to restore the item. When you restore a deleted file or folder, Composer copies the item from its original location on the drive.
Note: Deleted files and folders can only be restored if a snapshot was used to create the package source.
  1. Open Composer and authenticate locally.
  2. Click the disclosure triangle next to the package source in the sidebar.
  3. Click the disclosure triangle next to Snapshots.
  4. Select Files For Package to display a list of files, folders, and directories from the snapshot.
  5. Select the item you want to restore.
  6. Control-click (or right-click) the selected item and choose Restore.