• 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: Grammar and spelling checker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grammar and spelling checker


  • Subject: Re: Grammar and spelling checker
  • From: Peter Baxter <email@hidden>
  • Date: Thu, 8 Nov 2007 08:49:52 +1100

To give a better idea of what I'm up to this is part of the script so far:
The problem is that I am pretty sure that the Grammar and spelling checking does not appear in the dictionary for Text Edit even though is is available.  I hope this does not mean that I will be stuck with GUI scripting!

set theText to the clipboard
try
set _TempFile to ((path to desktop) & "temp.txt") as text


try
close access file _TempFile -- Make sure the file wasn't accidentally left open
on error
display dialog "Temp is open"
tell application "TextEdit" to quit
delay 0.5
end try


open for access file _TempFile with write permission
set eof file _TempFile to 0 -- clear the file contents
write theText to file _TempFile starting at eof
close access file _TempFile


end try
tell application "TextEdit"
open file _TempFile
(*check grammar text object of active document  -->  Here's where it all falls apart as the song says*)
end tell
end
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: Grammar and spelling checker
      • From: Paul Berkowitz <email@hidden>
References: 
 >Grammar and spelling checker (From: Peter Baxter <email@hidden>)

  • Prev by Date: Re: do shell problem
  • Next by Date: Re: Applescript and Bluetooth
  • Previous by thread: Grammar and spelling checker
  • Next by thread: Re: Grammar and spelling checker
  • Index(es):
    • Date
    • Thread