Re: AS newbie Filemaker question
Re: AS newbie Filemaker question
- Subject: Re: AS newbie Filemaker question
- From: revDAVE <email@hidden>
- Date: Tue, 11 Mar 2008 14:48:56 -0700
- Thread-topic: AS newbie Filemaker question
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden