Mac Spell Check?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
PBH
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 133
Joined: Sun Feb 20, 2011 4:26 pm
Contact:

Mac Spell Check?

Post by PBH » Sun Feb 20, 2011 4:52 pm

Hi,

Although I've had RunRev/LiveCode for some time I've only just dabbled a little, but now I'm trying to create a small text processing app (mainly to use on a Mac) and it would be nice to be able to access the Mac Spell Check and Thesaurus in a similar way that most other apps do, ie. under the edit menu or contextual menu. I've searched the forum and user guide etc., but I can't find any info on how to do this, so my questions are:

1. Is this easy to achieve?
2. Is there any documentation available for guidance?

I'd really appreciate if someone could point me in the right direction.

Thanks.

Paul

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Re: Mac Spell Check?

Post by townsend » Sun Feb 20, 2011 10:01 pm

Check out RunRevPlanet_com's Spell Check for LiveCode.

It works in Mac, Windows and Linux environments.

PBH
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 133
Joined: Sun Feb 20, 2011 4:26 pm
Contact:

Re: Mac Spell Check?

Post by PBH » Mon Feb 21, 2011 9:31 am

Thank you for the suggestion, I'll keep that in mind for now, but unfortunately it doesn't appear to have a Thesaurus.

I was hoping to be able to access the built-in Mac Services.

Thanks again.

Paul

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Mac Spell Check?

Post by shaosean » Mon Feb 21, 2011 4:06 pm

you can access the built-in spell checking with an external..

mcgrath3
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 149
Joined: Thu Feb 23, 2006 8:49 pm
Contact:

Re: Mac Spell Check?

Post by mcgrath3 » Mon Feb 21, 2011 6:35 pm

You can create an automator app and run that. I just tried it and it works.
  • Open automator.
    Create a new "Application"
    drag "Get Contents of Clipboard" over to the workflow area to the right
    drag "Get Definition of Word" over next
    Select "Oxford American Writer's Thesaurus" in the Dictionary btn of "Get Definition of Word"
    drag "Copy to Clipboard" over last
    save as an application "ThesaurusClipboard".
In LC create one button "Get Thesaurus" and two fields "Text" and "Thesaurus Results"

Code: Select all

on mouseUp
    put the selectedChunk into tTemp
    put word 2 of tTemp into tChar1
    put word 4 of tTemp into tChar3
    put character tChar1 to tChar3 of field 1 into tChunk
    copy
    launch "/Users/yournamehere/Desktop/ThesaurusClipboard.app"
    wait 6 seconds with messages
    focus on field "Thesaurus Results"
    paste 
end mouseUp
This works and pastes the results from the Dictionary app into LiveCode.

HTHs

Tom
Tom McGrath III
Lazy River Software
3mcgrath@comcast.net

PBH
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 133
Joined: Sun Feb 20, 2011 4:26 pm
Contact:

Re: Mac Spell Check?

Post by PBH » Mon Feb 21, 2011 8:31 pm

Thank you for the replies.

Thank you very much Tom for the code example, I really appreciate you taking the time to work that out, I'll certainly give it a go.

Paul

Post Reply