Speak only the highlighted text in TextEdit

I would like a script that speaks only the highlighted text in TextEdit.
I found this script at MacScripter, written by kai. Can it be tweaked.
Thanks,
Tom
set text_buffer to 5 (* avoid attempts to speak just a few new characters: modify as required *)
set previous_count to 0
activate application "TextEdit"
-- repeat
tell application "TextEdit" to set current_text to document 1's text
set current_count to count current_text
if (current_count - previous_count) > text_buffer then (* some new text was added *)
set current_text to current_text's text (previous_count + 1) thru current_count
else (* we've reached the end of the document so far *)
delay 1.5 (* pause before restarting entire text *)
end if
set previous_count to current_count
say current_text
-- end repeat

There doesn't appear to be a selection item in TextEdit, so just highlighting some text isn't going to work. If you were to copy to the clipboard, then you could do something like:
say (the clipboard) as text

Similar Messages

  • I typed in data into the highlighted text box, and then tried to print my form.  However, when printed, the copy only showed a portion of my answer.  Is there a way to expand Adobe Reader's highlighted text to show my full response, or should I make my re

    I typed in data into the highlighted text box, and then tried to print my form.  However, when printed, the copy only showed a portion of my answer.  Is there a way to expand Adobe Reader's highlighted text to show my full response, or should I make my responses only as long as the highlighted portion allows?

    While printing any pdf file it will print the visible text only. To overcome this, the form needs to be dynamic so that it expands in layout while entering more data. Usually dynamic forms are developed by Adobe LiveCycle Designer.
    ~Deepak

  • Regarding the "Highlight Text" feature

    Hello all!
    For the last couple weeks, I have been trying to figure out how to search my OCR enabled pdfs for certain key words and then highlight each instance, and, either because I missed it or because I was using an out of date version of Reader, I wasn't able to do this using Adobe Reader.
    Today I spent some time looking again and found the comments tool bar and the highlight text feature, but because of an asterisk next to them I couldn't bring them up, regardless of what kind of pdf it was.  I even tried making new pdfs with lower security settings to see if that did it but to no avail.
    However, today while Reader did not alert me to anything when I first opened it this afternoon, after multiple openings and closings as well as it being open for extended periods of time, it eventually informed me an update was available.  I updated to XI just now, and to my SHEER JOY the highlight text feature is not only available but on my toolbar by default.
    First of all, to any Adobe staff who reads this - THANK YOU FOR MAKING THIS FEATURE AVAILABLE BY DEFAULT.  I've needed this for an important project at work for a while now.
    Second, after receiving this new update I went on these forums, and it seems that this feature and this update have both been available for a while now, which is giving me a lot of questions:
    1.) When was the reader XI update pushed out to users (in other words, when should I have been notified that an update was available)?
    2.) Is the highlight text feature being available by default (and without asterisks or me giving myself migranes trying to change security settings) new with XI, or was it available in previous versions by default as well?
    3.) Why was this feature previously unavailable by default and guarded by security permissions etc.?
    4.) Why did this feature's availability change - what changed Adobe's minds?
    These are mostly for curiosity, but also because I've spent the last two weeks recovering from a corrupt user profile on my laptop, and since I can't remember what version I was using before I updated to XI, so I'm also curious if I've been using an outdated version for a while now.
    Anyway, any insight into my questions would be appreciated, but either way THANKS AGAIN!!!!!!

    I didn't make myself clear I'm sorry. I don't want to highlight text when searching, I want to highlight text like you do in a textbook when you are studying, using a highlighter.
    like so

  • Automatically copy only the unicode-Text from a Word-Document into FM8

    In my daily work I often have the problem to copy and paste text from a  Word-Document or other documents into my FrameMaker documents.
    The common way is to copy it in Word and "Special Paste" it in FrameMaker 8 as unicode. But this is not as confortable as to shortly hit Ctrl-v on the keyboard.
    I would like to have a new menuitem to special paste only the unicode text from the clipbopard. Is there a way to make such a makro and to put it in the menubar with a Key-Trigger?
    I read something like that in http://www.rzg.mpg.de/from_external/Frame6_Handbuch/Setting_up_FrameMaker.pdf (german), but I actually don't know what to chage for my case.

    Rather than create a new menu item (possible, I gather, but fiddly) I would recommendchanging the default “paste” behaviour.
    In the MAKER.INI file there is a line beginning
    ClipboardFormatsPriorities=
    Change this to put UNICODE TEXT as the first item.
    Ctrl-v will then paste Unicode text by default. You can still access the other options, should you need to, by using Paste Special.

  • Would it be possible to export only one response, such as only the highlighted one?

    Would it be possible to export only one response, such as only the highlighted one?

    You can use the "Show details" option in the View Responses tab:
    Once you activated the detail view, you can export the detail view (that contains a single response):
    thanks
    Roman

  • I have downloaded a pdf from a jounal web site.  After doing this and inserting comments, then saving it, upon opening it again, i can no longer see the text but only the highlight changes that i made

    I am using Adobe Acrobat Pro XI.  I have downloaded a pdf from a journal web site.  I need to review this article and make comments in the text.  After doing this and saving the file, when opening the saved file, I can only see the highlights where I made changes and the list of comments that I made, but I no longer see the original text.  See the example below.  Can anyone help on this?

    I am using Adobe Acrobat Pro XI.  I have downloaded a pdf from a journal web site.  I need to review this article and make comments in the text.  After doing this and saving the file, when opening the saved file, I can only see the highlights where I made changes and the list of comments that I made, but I no longer see the original text.  See the example below.  Can anyone help on this?

  • How can I change the color of the highlighted text when using the FIND function in Terminal?

    When searching for text in the Terminal's buffer, the matched text is highlighted using a color which seems to be computed from the background's color. I'm using a black backgroud and the finder's highlighter is grey. How can I change this? I'd like to specify the foreground and background colors of the matching text. I couldn't find an appropriate setting in the terminal's settings, nor in the default settings using the command "defaults".

    In my .bashrc file, I have enabled a couple of grep environment variables.
    GREP_OPTIONS='--color=always'
    GREP_COLOR='00;38;5;226'
    The latter is a vivid yellow.
    From the shell, I can search my history:

  • How to Extract the Highlight Text in PDF File

    Hi Scripters,
    i want know, how to extract the hightlight text in pdf files for text only format for (*.txt) file extension save.
    regards
    baby

    Hi,
    Okay i'll try do best.
    thanks for your reply.
    Regards
    Baby

  • How to get the highlighted text range through Framemaker's API calls?

    Hi all,
    I'm new to the Framemaker API (7.x) and developing a plugin for Framemaker 7.x. I wanted to get the highlighted objects from the active mif document. Tried this code:
    F_TextRangeT tr;
    /* Get the current text selection. */
    tr = F_ApiGetTextRange(FV_SessionId, docId, FP_TextSelection);
    Here is how I tested it:
    1. some text in the mif doc was highlighted.
    2. I clicked the menu item "my_plugin", a framemaker dialog popped up, some test configuration was sent through the dialog.
    3. The test configuration was read by my program correctly.
    However, the debugger showed that the tr is null! When I changed the first step of the test into:
    1. placed the mouse cursor at somewhere in the mif doc.
    The plugin worked somehow, the line where the mouse cursor was placed got selected, although I did not highlight anything.
    My question is: how to get a highlighted range though the Framemaker API call? I've been flipping through the FDK 7.0 Programmer's Reference but haven't found a solution yet. Any hint will be highly appreciated.
    Best Regards,
    Ellen N. Zhao

    Here is some information from the FDK Programmer's guide page 115:
    IMPORTANT: A valid text range can span multiple paragraphs, subcolumns, or text frames.
    It cant span multiple flows, footnotes, table cells, or text lines.
    It is possible for a document to have no text selection or insertion point at all. This can occur in
    the following circumstances:
    ● One or more graphic objects in the document are selected
    ● One or more entire table cells in the document are selected
    ● There is no selection of any type in the document
    So, I did select one or more entire table cells in the document in my first test. It's logical that the result was not like expected.
    But selecting one or more entire table cells is a crucial requirement for my plugin, is there anyway to get things straight?
    Simply put, I want to enable users to select one or more table cells in the document, and I want to get the object handles of the first cell and the last cell through Framemaker API calls. How?
    Many thanks in advance!
    Best Regards,
    Ellen N. Zhao

  • JTextPane - getting the color of the highlighted text

    Ok, I have a JTextPane that accepts typing input from the user. I need to know how to highlight a string and recover its font color.
    For example, if my JTextPane contained the sentence {color:#ff0000}This{color} {color:#0000ff}is{color} {color:#008000}an{color} {color:#ff6600}example{color} with those colors I want to be able to highlight the word "This", press a button, and have the program tell me that this string is red in RBG style. Likewise, I want to also be able to highlight the word "is" and return that color of blue in RBG format. I tried google searching this problem but I have had no luck. If anyone here has had experience with this or knows a way to do this I would very much appriciate it.
    Error trapping for selecting more then 2 strings with different colors will not be a problem so don't worry about it. I just need to know how to do the above request.
    Edited by: Naked-Crook on Jul 26, 2008 12:37 AM
    nevermind, I figured it out. Topic closed.

    Here is a simple conversion for you:
    BufferedImage bi = new BufferedImage(myImage, myImage.getWidth(null), myImage.getHeight(null), BufferedImage.TYPE_INT_RGB);
    Graphics g = bi.getGraphics():
    g.drawImage(myImage, 0, 0, null);If you are using ImageObserver objects, then replace null with the corresponding ImageObserver object in the BufferedImage and drawImage.

  • I can no longer use CTRL C to copy text. I get the letter "c" and the highlighted text is deleted. How do I get the capability back?

    The blue "Fn" plus any key will work. And, "Alt" plus works. But any shortcut that involves the "CTRL" key does not work. So I can't Copy, Delete, Paste, etc.

    As you can see from a brand-new virgin install of Firefox, no addons, no pre-existing profile, version 29 DOES put the menu bar on the taskbar. And Firefox, configured as I have it, on a system configured with High-Contrast colors (black in my case) turned on, Firefox is unthemeable.
    But never mind, I solver this one myself. I booted into XP and used an un-updated Firefox to find a new addon named "Classic Theme Restorer". That did the trick. Mark this one as solved. But....
    I wish developers (not just Firefox) who wish to fancy up their user interfaces would think about how it would affect the visually impaired. We use computers too.

  • Acrobat 9 Pro: Cannot copy highlighted text unless I un-highlight the text

    I have highlighted text in a document. When I go to copy that same text, it selects the entire sentence. I right-click, the menu starts with "Set Status." There is no "copy" option. Neither is control-C successful. When I next paste, it pastes a previously selected text, not the text I am attempting to copy in Acrobat. The only way I have found to copy the highlighted text is to un-highlight it, and then copy it. Are there any other solutions?
    Thanks!

    Thank you! This works. I pressed "shift," then highlighted the text I want to copy, and right-click (while still holding down "shift" key), and "Copy" finally appears in the menu.

  • Acrobat: summarize highlighted text only in a new document?

    Hi everyone,
    I have marked some passages with the "highlight text"-tool in a big pdf file and want to extract only the marked text in a new file. Is this possible?
    So far I could only print a new file with information ABOUT the highlighted text, but not the highlighted text itself.
    This means I get a file telling me only who highlighted the text and when he did that.
    I'm using Adobe Acrobat X, but if you know another program that is able to do this please tell me!
    Thanks for your help!

    Although i generally recommend people to user PDFMaker as it provides more features. But if you have already converted the files using PDF Printer, you can also creates tags. Try this:
    1). Open PDF in Acrobat.
    2). Click on Tools-> Accessibility.
    3). Add Tags to document.
    4). Save the document and then try the steps I mentioned above. This resolves the issue related to Tags.
    You can also do that in MS Word once the PDF is tagged.
    1). Open MS Word. Click on Acrobat Tab
    2). Click on Acrobat Comments->Import Comments from Acrobat.
    3). Now Follow step 6,7,8, and 9 and you are done.
    Once you get the comments exported to word you need to change the layout of those using features in word.
    Also, you can try this:
    In the comments pane->Under Comments List-> Click on the bubbles and select Hide All Comments. No Click on the same bubble and select Type->Highlight. This will show you only Highlight annotations.
    Now Click on Options(Box) and select create comment summary.
    Under Comment summary select third radio button-> Comments Only.
    For Include option -> Select Only the comments currentyly showing.
    Click Create Comments Summary
    This will generate the PDF file with only highlight annotations.
    Now you can easily export this to MS Word, Using SaveAs-> Microsoft Word-> Word Documents.
    (This might create a problem if the highlighted tag is on a Scan document that is OCRed/ not OCRed. That may slightly change the layout). Otherwise its okey.
    Does that resolve the issue??
    I am not sure if i followed the second issue of yours. Is update a problem or adding Acrobat tab in Word?
    ~SaVe

  • Preview: highlight text slowly disappears over the days

    Hello everyone.
    I have several days reading a book in pdf format with preview.app, and I highlight text in bright yellow.
    I have reviewed all the highlighted text and the color yellow is more tenuous as I approach the beginning of the book.
    In fact the highlight of the first page no longer exists.
    How I can do to make all the highlight is of the same intensity of color?
    I use Preview Versión 5.5 (719). Thank you.

    Tonight I went to the Genius Bar. There seems to be two options:
    (1) Do as the genius did tonight:
    - Reset the home folder's ACL (Access Control List.)  (He said to Google this to learn exactly how to do this.)
    - Repair the disk permissions
    - Delete the Preview preference file. It's a "plist" file located in user/library/preferences
    If that doesn't work, then:
    (2) Re-install Lion.
    I tried Preview with the fixes and most of my problems seemed to be fixed. Those being the colors of the highlighted text and notes haven't dimmed after a number of quits and restarts of Preview. However, the grey text that I originally included in my annotations became invisible again. They're still there, but you can't seem them. Although the text that I included using other colors (blue & red) continue to appear.
    My feeling that this still might be an issue related to versions, but who knows.

  • How can I turn on "speak" on highlighted text on iPhone 3GS?

    How can I add "speak" option to highlighted text on iPhone 3GS?

    AustinReyes wrote:
    I just need to locate my iPhone but my location services are off, is there any way to turn them on from another device?
    Sorry... No.
    Lost or Stolen iOS device  >  http://support.apple.com/kb/HT5668

Maybe you are looking for

  • Unable to install NVIDIA drivers on Windows 8 (Boot Camp)

    I'm running Windows 8 on a secondary partition on my MacBook Pro (17-inch, 2009). I have, in the past, been able to successfully install Windows 8 on a second partition on this mac and get everything working, including all of my device drivers. I had

  • What is this effect called, and how to create it?

    Hello, I' m just curious about this gradation effect's name, and how to create it in Photoshop.

  • About «networking» possibilities and limitations ...

    Hi, I experienced 2 major network crash of my little home network: iMac G5 (OS 10.4.11) + iMac Intel (10.6.2) + Airport Extreme Base Station. I don't know what I did exactly either times other than that I was experiencing with the network. I was eith

  • Control key not working after repair

    I took my macbook in over the weekend to the genius bar for them to look at the display hinge, from the paperwork it looks like in addition to replacing the display they also replaced the logic board and the wifi card. I got the laptop home and the c

  • Report object

    hi frds plz give me clearly any critical report object plz give me with  transaction codes to my mail id <REMOVED BY MODERATOR> Edited by: Alvaro Tejada Galindo on Feb 27, 2008 5:27 PM