​​ ​

The Apple Support Community will permanently close on November 20, 2026. Starting today, the site will no longer accept new posts and is available in a read-only state.


You can continue to find trusted guidance and support on the official Apple Support site. 


We want to thank the community members who have contributed their time and expertise to help others with their Apple products.


Get "find" results from TextEdit in Applescript

I'm writing a program that is supposed to check a TextEdit document for a certain string, and perform a different action depending on whether the string was found in the document.


Basically, I need AppleScript to return the results or number of results of a "find" in TextEdit.


I have no idea what to do.

MacBook, Mac OS X (10.7.5)

Posted on Mar 4, 2013 12:38 PM

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Get "find" results from TextEdit in Applescript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.