Trim or extend comp duration to fit layer contents
This script trims or lengthens your current comp duration to the in & out points of its contents, without affecting layer timing relative to one another.
If you have layers extending past the beginning or end of your composition, the script will extend the comp to fit them as well.