(no subject)
(no subject)
- Subject: (no subject)
- From: Malcolm Fitzgerald <email@hidden>
- Date: Wed, 20 Jun 2001 12:22:07 +1000
>
Hello,
>
>
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?
you're close, you do need to work with "insertion points", here's how:
set theSlogan to "BBEdit - still doesn't suck"
select first insertion point of window 1
insert text theSlogan & return
--
Malcolm Fitzgerald
Database Manager
The Australian Society of Authors
ph: 02 9318 0877 fax: 02 9318 0530 email: email@hidden
www.asauthors.org www.asauthors.org/award www.asauthors.org/web_of_poets