Re: add a paragraph to the beginning of a doc
Re: add a paragraph to the beginning of a doc
- Subject: Re: add a paragraph to the beginning of a doc
- From: Shane Stanley <email@hidden>
- Date: Wed, 20 Jun 2001 11:50:56 +1000
>
On 6/19/01 3:18 PM, email@hidden <email@hidden> wrote:
>
>
I am writing a script for BBEdit. The file that is being editing in BBEdit
>
is a MS Word file. I am trying to insert a paragraph at the beginning with:
>
set first paragraph of document to "Filename" & Return
>
>
This gives the following error "Can't set paragraph 1 of document to
>
"Filename".
>
>
I have tried "set selection to insertion point..." and even "make new
>
paragraph..." The rest of my script, replacing characters and saving the
>
file, works great. What am I missing? Any ideas?
tell application "BBEdit 6.1"
tell window 1
copy ("Filename" & return) to before character 1
end tell
end tell
--
Shane Stanley, email@hidden