• 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
Re: add a paragraph to the beginning of a doc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: add a paragraph to the beginning of a doc (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: moving files from one volume to another?
  • Next by Date: (no subject)
  • Previous by thread: Re: add a paragraph to the beginning of a doc
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread