• 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: Convert MS Word to HTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert MS Word to HTML


  • Subject: Re: Convert MS Word to HTML
  • From: Deivy Petrescu <email@hidden>
  • Date: Thu, 13 Nov 2003 10:19:31 -0500

On Nov 13, 2003, at 8:47 AM, Mats-Olof Liljegren wrote:

Great list this! As newbie I already got a lot of input.
Thanks to you all!

Still it has not solved my problem. Deivy's visual basic script generates an error on my computer. Maybe it is a language problem. My computer runs in Swedish. But I think it's not because visual basic is in English anyway.

FYI I am running Apache, Lasso 6 and MySQL on a double G4 at 533 MHz

/Mats-Olof


Mats, please note that the code below was recorded on my computer. There is a line NameGoesHere.htm which should be changed. But I do not believe this would give you an error.
The only problem I see is that to run the script the word file must be opened. I also believe you must have permission to save in the directory the file resides (which I think you do).
However, just open a Script Editor and click record, then open one specific word file and save it as html in the directory you want all your html files.
Click stop, then tweak the code to have what you want.
We can help you with that.


2003-11-13 kl. 01.53 skrev Deivy Petrescu:

Alternatively, you can save as html from word. The code is miserable, but it is done for you.

Again, the recorded code:

______________
tell application "Microsoft Word"
do Visual Basic " ActiveDocument.SaveAs FileName:=\"NameGoesHere.htm\", FileFormat:= _


---> "namegoeshere.htm" should be changed.


wdFormatHTML, LockComments:=False, Password:=\"\", AddToRecentFiles:=True, _
WritePassword:=\"\", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False, HTMLDisplayOnlyOutput:=False"
close window 1
end tell
_______________




Regards

Deivy
http://www.dicas.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Convert MS Word to HTML (From: Mats-Olof Liljegren <email@hidden>)
 >Re: Convert MS Word to HTML (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: Convert MS Word to HTML
  • Next by Date: Re: Stay-open applet - problems on quitting
  • Previous by thread: Re: Convert MS Word to HTML
  • Next by thread: Re: Convert MS Word to HTML
  • Index(es):
    • Date
    • Thread