Auto-generated title based on last entry
Something like this should do what you're looking for:

{% if not object.id %}{{ craft.entries.section('scripts').order('postDate DESC').first().title + 1 }}{% else %}{{ object.title }}{% endif %}