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