Re: AS newbie Filemaker question
Re: AS newbie Filemaker question
- Subject: Re: AS newbie Filemaker question
- From: Peter Baxter <email@hidden>
- Date: Wed, 12 Mar 2008 07:06:05 +1100
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 Peter that worked great!
Q: Is it also possible to extract (copy) the file contents (all the
text)
into a variable?
I tried:
set getstuff to the contents of myDoc
display dialog getit as string
.... But that didn't work - no error, but it just showed the path
for some
reason
There are 3 formats I am working with
1- .txt
2- .doc
3- .pages
--
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
"Media is the plural of mediocre." -- Jimmy Breslin
Peter Baxter
email@hidden
_______________________________________________
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