• 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: AS newbie Filemaker question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS newbie Filemaker question


  • Subject: Re: AS newbie Filemaker question
  • From: Peter Baxter <email@hidden>
  • Date: Wed, 12 Mar 2008 16:24:26 +1100

Hi,


Yes it is, but not so easy. The script I sent will open word files as text, which is easier, as Microsoft tends to have open screens that interfere with the script.
I forget where I put the last script I extracted text from word with, but when I find it, I'll send you a copy or a working script.



On 12/03/2008, at 8:48 AM, revDAVE wrote:

On 3/11/2008 1:06 PM, "Peter Baxter" <email@hidden> wrote:

OK,




tell application "Finder" set myDoc to alias "Macintosh HD:Users:MyUserName:Documents:YourDocument.doc" set modDate to the modification date of myDoc set createDate to the creation date of myDoc tell application "TextEdit"

open myDoc
set MyText to every paragraph of the front document
quit myDoc
end tell
set allThis to "Creation Date " & createDate & "¬
Modification Date " & modDate & " " & MyText
display dialog allThis
end tell

Thanks so much Peter - that worked well!

I also have some MS .doc files and tried this:


---------- tell application "Microsoft Word" activate open myDoc set MyText to every paragraph of the front document end tell

display dialog MyText
-----------


-but the MyText didn't seem to copy - it had error = can't make {} into a
string


I also tried things like:
set MyText to select every paragraph
But that didn't work either

- sorry for the newbie questions

Is it possible to copy in MS word 2004?

--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists]



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

Peter Baxter email@hidden


There is hardly anything in the world that some man can't make a little worse and sell a little cheaper, and the people who consider price only are this man's lawful prey.-- John Ruskin



_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: AS newbie Filemaker question (From: revDAVE <email@hidden>)

  • Prev by Date: Put a Folder in the Dock... Changes Between Tiger and Leopard?
  • Next by Date: Scripting pdf-formfields (app preview)
  • Previous by thread: Re: AS newbie Filemaker question
  • Next by thread: Re: AS newbie Filemaker question
  • Index(es):
    • Date
    • Thread