AppleScript: Working with text

My script finds blocks of text that are have the character style "CS-Descriptor:

Tell application "Adobe InDesign CS5"

find characters the value applied to preferences of text style to "CS-Descriptor"

Tell document 1

the value myDescription for Search text

tell the end

tell the end

This refers, for example

{text from character to character 1807 1818 of history id 21888 document id 19 of the application "Adobe InDesign CS5"}

I now need to find more information on the surroundings of this piece of text. Anyway I want to find something like the number of the paragraph or line number, so that I can find the first word in the line.

Can someone help me get "text of character...". "to"paragraph 52 of the conduct of the text... "or something similar?

So this script ID my experience has been that it is much, much easier I think! Fingers crossed it's once again.

Sorry about Applescript - it seems to be disappearing!

Emma

Cooroo wrote:

This refers, for example

{character text 1807 to character 1818 ID History document id 21888 19 application "Adobe InDesign CS5"}

I now need to find more information on the surroundings of this piece of text. Anyway I want to find something like the number of the paragraph or line number, so that I can find the first word in the line.

You can just ask:

Word 1 of paragraph 1 of the myDescription

Get the number of the paragraph is a bit more complicated:

County of paragraphs of text de character 1 of parent story of myDescription at character 1 of myDescription

Sorry about Applescript - it seems to be disappearing!

Nothing to apologize for - announcement of his death were greatly exaggerated.

Tags: InDesign

Similar Questions

  • my selection talking has stopped working with text messaging

    my selection talking has stopped working with text messaging

    Hi, plumberboy58.

    Please visit Apple support communities.

    I understand that you have a problem with the selection of talk.  Let's start by making sure that talk of selection is always enabled in settings > general > accessibility > speech.

    Talk about selection

    If talk about selection doesn't always show when you select a text message, forces all applications to close and restart your iPhone.

    Force an app to close the iOS

    See you soon

  • Muse crashes when working with text

    While working with Muse, I'll type some text in a box using the Typekit Lato. When I click outside of the text frame, I get this error and then closes Muse:

    Screen Shot 2015-02-26 at 14.57.08.png

    Any suggestions or is this something that should be fixed with the next update?

    An update was released today, please try to update of Muse and then check if you still face the same problem.

    Thank you

    Sanjit

  • How can I work with text in different languages?

    Never worked with other languages. I get the English text for a translated brochure in Spanish, Russian, Vietnamese and Khmer (Cambodian) to design four different brochures. I see the Spanish and Russian in the drop down language menu, but not the other two. They are available anywhere? Or do I need? What fonts will work with these languages? BTW I will receive the final layouts verified by the same translation company. I am on Mac OS 10.6.8. Thank you

    No problem! I spent decades (OK, almost exactly two) accumulate pieces little knowledge multilingual DTP, it feels good to info-dump on someone who actually wants to hear about it.

    In any case: I said that it was possible to get additional languages in the list and also possible to install Hunspell dictionaries, but I forgot to say exactly how.

    Here's exactly how:

    http://blogs.Adobe.com/Typblography/2011/11/how-to-enable-more-languages-in-InDesign-CS5-5 .html

    I compose a lot of Khmer, but if my superior immediate wasn't herself Cambodian, it would be much more difficult.

  • Work with text and page border

    I work with an old educational version of InDesign, trying to put a box/page border (using the rectangle tool; no fill) round a page in a book resource, but the text will not display... figure shows, but the text will not be little matter what I do... I tried arranging, layers, but can't make it work. What I am doing wrong? I never had this problem with PageMaker.

    If you go to object > text frame Options you can put a check mark next to "Ignore the text of not dress" for this image (assuming that you have need of the other text wrap on the page).

  • Work with text on Transparent background

    If I create a new transparent background file - a png - it is difficult to actually see the text well enough to make changes such as kerning or by choosing lighter colors for the text itself. So, I hope to find a way to generate a title or a banner with a transparent background as a final product but first work on that and apply touch-ups with a background that is easier to see.  Is there a way to temporarily change the background transparent to white or another color, then the transparent rear switch? Starting with a white background in the file psd and generation of text - as a title or a banner - and then deleting the background with the magic wand or make a color selection and delete seems a long way around to solve the problem. I tried to create a new PSD with white background, creating the title of the text, cropping, then using save in png or even save on the web, but somehow, I always get the original white background behind the text. Thanks in advance for your suggestions.

    Hello

    If you create a new transparent image, you can put a layer of fill color below the text layer and either turn off the visibility of the layer for the color fill layer (look next to the layer in the layers panel color fill)

    or remove the color fill layer before you save the file as a transparent png.

  • How can I get speech recognition to work with text to train my voice, the way which the tutorial done?

    The tutorial of speech recognition to train my voice is not large enough for the engine get good recognition of my voice. I want to put in place a couple random pages of text (like a novel, etc.), and that I dictate the words in the program he would coordinate the words I read with the text I was reading from and type what I read to show how he got trained.

    Here is the translation of the above using the voice recognition program.

    If this tutorial from speech recognition to train my voice is not a large enough for the motor get a good and recognition of my voice.  I want to put in place a couple random pages of text (like a novel) which does not run and I dictate the words in the program that he would coordinate the words I read the text I was reading types of what I read, that the show has done which forms

    The foregoing would take a lot of editing, which I already did a large part of. Also if you change the type of microphone that you are using, you could start any training.

    I'd be cool if (with headphones), you might get feedback that the program thought you said so that you wouldn't be constantly replay to see if it came out correctly.

    Hello

    What version of the windows operating system is installed in the computer?

    Method 1:

    I suggest you to see the link (it is necessary for windows 7)

    Troubleshoot speech recognition

    http://Windows.Microsoft.com/en-NZ/Windows-Vista/troubleshoot-speech-recognition-problems

    Method 2:

    If you are using windows 7, I also suggest you to see the links and check.

    What can I do with speech recognition?

    http://Windows.Microsoft.com/en-us/Windows7/what-can-I-do-with-speech-recognition

    Common commands in speech recognition

    http://Windows.Microsoft.com/en-us/Windows7/common-commands-in-speech-recognition

    Add or edit words in the speech dictionary

    http://Windows.Microsoft.com/en-us/Windows7/add-or-edit-words-in-the-speech-dictionary

    Dictate text using speech recognition

    http://Windows.Microsoft.com/en-us/Windows7/dictate-text-using-speech-recognition

    See also:

    Setting speech options

    http://Windows.Microsoft.com/en-us/Windows7/setting-speech-options

    Set up speech recognition

    http://Windows.Microsoft.com/en-us/Windows7/set-up-speech-recognition

  • DB-00009 - only works with text attachments depending on the article.

    Hello

    Can I get an email sent correctly by using the MIME type ' text / ' but if I change the type "text/html" or I change the extension of file attached to .html, the message does not send with a general error.

    where can I get more information on the 'General error' that appears in the message?

    I use the Java plugin for Eclipse 1.3 on a Bold 9780.

    I was able to reproduce it as well and he reported in Issue Tracker here: https://www.blackberry.com/jira/browse/JAVAAPI-2047

    It seems to be a timing issue. If the call System.exit is removed or Thread.sleep is called after Transport.send but before System.exit the message is sent.

    The issue has been brought to our development team.  I'll provide more information as soon as I can.

  • Box pop up annoying when working with text

    I don't know what this new box, is that appears when I manipulate text... little white box with the capital letters and tiny in there...

    But I would like to know how to turn it off immediately.

    Poorly executed, it keeps popping up and gets stuck on when just trying to adjust the kerning and basic and other lines. Hideous.

    This looks like a new feature called Alternative glyphs. It makes it so much easier to find alternate characters for the selected character and you do not have to rummage in the glyphs Panel.

    That said, you can disable via preferences > Type > activate alternate glyph layer.

  • Working with text - ask advice related to workflow patterns

    Hello

    I'm asking for advice: I'll make a catalogue which will be made up of cells like the one 01 IMG:

    01-IMG

    Screenshot_1.png

    My question is: The text under the image consists of three blocks of text {name, specifications, colors, sizes} each formatted by a different style. Is generally best used to keep all the columns in the tree under the picture in a block of text as in the image IMG 02? {Text blocks are highlighted in blue.}

    IMG 02 - two blocks of text
    Screenshot_2.png

    Or is better to create a framework text for each item? IMG 03:

    Text IMG 03-4 blocks

    Screenshot_3.png

    Thanks for your time guys!

    I would go even further, all text and photo in a box

    You can paste the image frame in the text block, and then he will stay with the text.

    You could also make each item as an individual table inside a block of text running. This would make easier the movement to reorganize in a point is added or removed at the last minute.

  • Muse crash application completely to work with text

    Since the last update of October the application crash muse by editing the typetools or the colorchoice for type. This notice is posted.

    Could you please get the file muselog.txt to your Documents folder and send it on [email protected]. Please ensure that mention this forum link in the subject of your e-mail.

    Also, try to copy your files to a different location, for example your office and then work from there... it makes no difference to the accident?

    Thank you

    Vikas

  • Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.

    Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.

    You have placed your beam to insert at the end of your text on page 13 and then apply Insert menu: Page Break? In the v5.6.2, Pages I just add a new page to a section of four pages to this approach.

  • To work with the text to the assignment by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not start to rise upward, as happens in other browsers. I ask you for

    After the transition to Windows 7, there was a problem with Firefox. To work with the text to the award by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not ascend to the top as it was earlier, and like that occurs in other browsers. It is necessary to press the other key "down" which is him very troublesome. Resettlement on an earlier version (8.0) earlier irreproachably working, gave nothing. I ask you to help

    You must activate the module bar (Firefox > Options or view > toolbars;) CTRL + /) or find bar to make Firefox scroll the page while selecting the text (Ctrl + F).

  • Text properties DC stopped working with 2015.017.20050 updated

    My bar of text properties simply ceased to work with this new update. Should I just restore to a previous date and forget this update (for now)? Or, others have this problem with possibly a patch? (windows 7)

    Hello

    We have released an update today which solves the problem of the properties toolbar and now you can continue to use it outside of the app commenting as well. Please open Acrobat or Reader DC and visit help > check for updates to ensure that you are on the latest patch.

    Details on the release: https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-02-2016.html

    Please let us know how it goes.

    Thank you

    -ashu

  • I'm working with Acrobat XI and when I try to add text to the geopdf file I get a popup screen that says it is a secure document and editing is not allowed. How can I fix it?

    I'm working with Acrobat XI and when I try to add text to a geopdf file I get a popup screen that says it is a secure document and editing is not allowed. How can I fix it?

    I thought about it... need to use the defined comment tool, not the set of editing tools.

Maybe you are looking for