On Sep 14, 2011, at 10:51, Robert Gilman wrote:
> As part of this I would like to insert the name of each file into the file
> itself.
______________________________________________________________________
Hey Robert,
Simple. Where exactly do you want to place the name?
--
Best Regards,
Chris
______________________________________________________________________
tell application "BBEdit"
try
tell front text document
set docName to its name
set before character 1 to ("Document Name: " & docName & return & return)
save
end tell
on error errMsg number errNum
set {cr, sep} to {return, "------------------------------------------"}
set e to sep & cr & "Error: " & errMsg & cr & sep & cr & "Error Number: " &
errNum & cr & sep
beep
display dialog e
end try
end tell
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>