Bit left-wing this, but has anyone got any ideas if it's possible to use RunRev to extract data from Word documents?
Specifically, I've noticed some recruitement sites will actually take a CV and then extract address, phone number and other information automatically.
Extracting data from Word documents
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
On Windows, use the follosing VB Script:
and call it using the shell function.
On Mac OS X, you can use TextUtil. Look here for more info:
<http://www.hmug.org/man/1/textutil.php>
or type "man textutil" in the terminal.
Best,
Mark
Code: Select all
Option Explicit
Dim objWord
Dim strFile
If WScript.Arguments.Count < 1 Then
WScript.Echo("Usage: doc2txt.vbs C:\file.doc")
WScript.Quit
End If
strFile = Wscript.Arguments(0)
Set objWord = WScript.CreateObject("Word.Application")
objWord.Documents.Open strFile
objWord.ActiveDocument.SaveAs strFile&".rtf", 6
objWord.ActiveDocument.Close
objWord.Quit
On Mac OS X, you can use TextUtil. Look here for more info:
<http://www.hmug.org/man/1/textutil.php>
or type "man textutil" in the terminal.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
This post on the Rev discussion list describes a new library for pulling text from Word 2007 documents:
http://lists.runrev.com/pipermail/use-r ... 03526.html
http://lists.runrev.com/pipermail/use-r ... 03526.html
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn