• 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 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
  • Follow-Ups:
    • Re: AS newbie Filemaker question
      • From: revDAVE <email@hidden>
References: 
 >Re: AS newbie Filemaker question (From: revDAVE <email@hidden>)

  • Prev by Date: Re: Applescript Language Guide for Leopard
  • Next by Date: Re: Key Code For Option Key
  • Previous by thread: Re: AS newbie Filemaker question
  • Next by thread: Re: AS newbie Filemaker question
  • Index(es):
    • Date
    • Thread