• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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


  • Follow-Ups:
    • Re: BBEdit (no subject)
      • From: "Stephen Swift (aka Burnum)" <email@hidden>
  • Prev by Date: Re: add a paragraph to the beginning of a doc
  • Next by Date: Re: add a paragraph to the beginning of a doc
  • Previous by thread: Re: add a paragraph to the beginning of a doc
  • Next by thread: Re: BBEdit (no subject)
  • Index(es):
    • Date
    • Thread