Convert to text

I'm trying to get a numeric value to put in this script, but I get an error when I try to convert the line of text

Is it possible, that I'm trying to return a specified number of history not in photoshop.

Thank you very much

Matt

tell application id "com.adobe.photoshop"
  tell current document
  set a to current history state
  --undo larget action
  log a
  --(*history state 57 of document DJ30ER08204OR6GO.JPG*)---
  set b to 3rd text item of (a as text)
  set current history state to history state (b - 27)
  end tell
end tell

This works for now, but is a little messy.

tell application id "com.adobe.photoshop"
  tell current document
  set a to (current history state)
  try
  set b to (a as text)
  on error error_message
  end try
  log "error " & error_message
  set {oldTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "Can’t make «class cHst»"}
  set c to last text item of error_message
  set {oldTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "of document"}
  set d to first text item of c
  set e to d as integer

  --(*history state 57 of document DJ30ER08204OR6GO.JPG*)---

  set current history state to history state (e - 27)

  end tell
end tell

Tags: Mac OS & System Software

Similar Questions

  • Convert a text into an MP3 file in the Alex voice?

    Hello world

    Is it possible to convert a text file to an MP3 file in the Alex voice on the iPad or Windows PC?  Apparently, this can be done on the Mac.

    I use the Alex voice to read the text all the time on my iPad, and I would like to be able to save the text as an MP3 file so that I can play on other devices (for example, iPod, Windows PCs).  So far I could not find built into the functionality of the iPad or iPad app that would allow me to do.  I also was not able to find any program for Windows PC that does this.

    I found various programs that convert text into MP3 files (for example, TextAloud3, Voice Reader home 15, etc.), but I like the Alex voice much more than the voice in these programs, so I really hope that there is a way to do it on the iPad or Windows PC.

    Thank you in advance for your help!

    N ° you can't do on an iPad. I don't think there's a way to do it on a Windows PC since voice is the property of Apple, as far as I know.

  • How to write with a pencil Apple then convert to text (mac)

    I just got my apple pencil - I would use to take notes, and then convert handwritten notes to text, but I can't understand it! I can write things but how to convert to text? I'm a mac household only.

    Try the _MyScript Stylus - writing Keyboard_ App form the App store. It installs like a new keyboard that you can use in any application.

    You can select the MyScript - keyboard stylus anywhere you would use the regular keyboard, exactly as you would select the Emoji keyboard. The keyboard is replaced by a scroll of handwriting and just write in the book, and it is converted to text in application what ever you use the keyboard.

    There are other applications to create text based on handwriting notes, but I liked this one because it can be used with any application.

    I forgot to mention, it's free!

  • How to convert an mp3 file to a file rtext? Can I use windows media player to play mp3 and have the recigition speech to convert to text?

    Can I use windows media player to play mp3 and have the recigition speech to convert to text?

    You can get on a conversion of 70% in reading a file in Windows Media Player using something like Dragon Naturally Speaking to convert. If you set the playback speed to slow in Windows Media Player to play > play speed, you will get a better result. The best option is to download the file to an audio transcription service, but which generally costs 0, 50-1, 00 per minute of audio.

  • My e-mail address is stored in My Documents in the file ATT0004. Opening the onus in the unreadable text by me. How to convert to text.

    ATT00004

    My e-mail address is stored in My Documents in the file ATT0004. Opening the onus in the unreadable text by me. How to convert to text.

    This looks like an attachment from Outlook that was sent in the RTF format.  Try asking the sender to send in text in HTML format or gross but not rich TEXT format.

    Otherwise, you will need to be much more detailed in your question.

    Steve

  • need me OCR software to convert the text scanned in Word?

    I have a Photosmart 7510 multifunctional printer/ecanner and a PC with Windows 7, the new reasonably. I don't see how I can convert my text scanned in Word and cannot find OCR anywhere. Must OCR be purchased separately now?

    Hello

    Yes, you can buy the OCR program, but there are a few free options such as:

    http://free-OCR-to-Word.en.softonic.com/
    http://www.free-OCR.com/

    for Word:

    http://Office.Microsoft.com/en-AU/Word-Help/scan-and-edit-a-document-HA010254879.aspx

    Kind regards.

  • How do I do to convert the text of the String object to the Clipboard.

    Hi all, I am a beginner and I have a problem with the method of the Clipboard. I want to put a text string to the Clipboard, but the Clipboard.put method requires an object. What can I do to convert my text from the string object?

    My code below:

    String message = OriginalMessage.getBodyText();
    
                    String[] selections = {"Copy","Cancel"};                            Dialog addDialog = new Dialog("Copy to Clipboard", selections, null, 0, null);                           LabelField field = new LabelField(message);                addDialog.add(field);    
    
                if(addDialog.doModal() == 0) // User selected "Copy".            {
    
                    Clipboard cb = new Clipboard.put(message);
    
                }
    

    Please help me.

    A string is an object in Java.  You can simply call Clipboard.getClipBoard () .put (message);

  • How to convert several text boxes to the checkboxes

    Nice day

    in the last months, we are working on Adobe Acrobat DC and we have the following problem when we create pdf forms.

    It is quite common for us to convert a Word format in PDF form. Then, we select 'Prepare form' in Adobe DC to insert/change/remove the created fields (text boxes, check boxes, etc.). During this conversion, there are fields that must be boxes instead of text boxes. In order to proceed, we all have remove them and then re-create them which takes a lot of time.

    Is there a feature that allows you to select several fields and move them from one type to another (for example, convert all text in checkboxes areas)?

    Concerning

    -C' is not correct. You can select specific fields to convert from a list or based on their name, the field type and the page.

    -Yes, it is compatible with all versions of Acrobat (probably not until version 7, though).

    -The rest exactly the same size.

  • Convert a text marked in the notes in...

    With this script, convert us referenced text at the bottom of page, but we lose the character styles.

    http://www.Indiscripts.com/post/2010/04/refoot-convert-markup-text-into-InDesign-footnotes

    We can keep them?

    Thank you

    The problem is this script by Marc manipulates the text through 'content', which is a simple JavaScript string unformatted. You can change that using the native function of text InDesign 'move' - replace the internal reference with this function:

    while( fnFind=fnFinds.pop() )
    {
    fnParent = fnFind.parent.getElements()[0];
    ip = fnFind.insertionPoints[0].index;
    try {
      fn = fnParent.footnotes.add(LocationOptions.BEFORE, fnParent.insertionPoints[ip]);
      fnFind.move (LocationOptions.AT_END, fn.texts[0]);
      ++count;
      }
    catch(_){}
    }
    

    ... but it (obviously!) copy the tags as well. Get rid of them is not that simple in a script *-maybe it's just more easy to do a search/replace separate thereafter, to eliminate.

    * It is when the reference markers are set texts, but not with the current construction, which allows various different markers.

  • I signed up for adobe pdf export so that I can take an excerpt from a pdf file and convert to text but it does not work.

    I can't convert pdf text section.

    Hi thomasc99514485,

    With service ExportPDF, the full PDF file will be converted to the desired format.

    You can use it by going to https://cloud.acrobat.com/exportpdf

    Thank you

    Abhishek

  • I converted the text to the shape in illustrator and I try to apply a dotted around the shape; However, it does not work.

    I converted the text to the shape in illustrator and I try to apply a dotted around the shape; However, it does not work. Maybe I'm missing a step? Any suggestions?

    Capture.PNG

    The settings that you should should work. I agree with sisham, to keep things simple and only put 5 in the first 2 fields, or your H will resemble each other.

    Now, you must have something else, and I suggest you select the element and to dissociate in the appearance menu > clear appearance. Then apply the dotted line.

    If you can post your file, am sure we could find what is worrying, but my guess is you have your dashboard applied, and which is overridden by a stroke applied to the group or level of the layer and dashboard you

  • CONVERT FORMAT TEXT

    When I try to convert a text in plain arial (or any other font) in a form I get an error saying unable to convert-shaped box because I use a fake "BOLD" type

    I do not use a fake "BOLD" type

    So what gives here?

    Where you need a Visual to see where the fake bold button in the character Panel.

    Window > character and click on the fake bold button to disable the fake fat and then you should be able to convert your type of shape.

  • How can I stop automatically convert to text in Acrobat DC when I want to edit a pdf file?

    I have a multipage document that I needed to add text on one page.  DC begins to convert the text document when you click on edit PDF automatically.  How to disable this option?  It's really annoying.

    Hello world

    Thank you for your patience. We understand that it is annoying behavior and now we have a solution for you. In the latest version of Acrobat DC, you can disable the "auto convert to text.

    Just open a scanned PDF document and click on edit PDFS. The first launch, Acrobat converts the image into text. All you have to do is now click on the button "Back to the Image" in the right pane. Acrobat now remembers this setting and will not convert any document scanned text unless you change it from here.

  • I try to combine pdf files.  My word documents convert the text but lose the background color.  Any suggestions?

    I try to combine pdf files.  My word documents convert the text but lose the background color.  Any suggestions?

    Hello

    With Office 365, need you Acrobat 11.0.1 or higher.

    You can also try the new DC Pro Acrobat.

    Thank you

    Tanvi

  • scan a document and then convert the text words

    I need to convert scanned text documents, so I don't have to type all this. But I'm not sure how to do this, HELP! [need SPECIFIC directions please and thank you:]

    Purchase a license for Acrobat (Standard or Pro) XI.

    Download, install, register, activate (if a license "full" / "perpetual" vs a subscription).

    Buy a scanner. Connect the equipment, install the scanner software.

    You use the scanner to make a picture / photo of the document that contains the text.

    Acrobat allows you to create a PDF file from the output of the parser.

    Step by step for all of this is very long that's why it is essential that give you a good, close reading to the scanner/scanner software or notices / Help and
    using Acrobat.

    Start here with the help of Acrobat:

    Acrobat help. Acrobat learn & support

    Be well...

  • I just started my creative cloud subscription and in artificial intelligence, I try to convert the text to outlines text, but only in the type of command is not active! can someone tell me why? and what should I do to activate it? I use in windows 8

    I just started my creative cloud subscription and in artificial intelligence, I try to convert the text to outlines text, but only in the type of command is not active! can someone tell me why? and what should I do to activate it? I use in windows 8

    Abdel,

    What font you vectorize?

    Or is happening with all your fonts?

Maybe you are looking for

  • No security security!

    I wonder about the safety of my devices. Currently I use the iPhone6, I've owned the original Apple TV, three different books of Mac, iPad and iPad mini, the iPods(various models), I am quite familiar with the devices Apple and their software. And I

  • Cannot address fields uncheck the unwanted address book importing

    I am trying to import an address book of .csv. All fields are checked and the fields, I want do not uncheck when I click on them. What causes this problem, please?

  • How can I stop the download automatically all videos?

    I have limited allocation of bandwidth and data, I need to be able to stop all the videos download automatically. What I like most is that any video that attempts to load any drive is stopped and I gives me the opportunity to play if I want.

  • Satellite A300: Vista 64 bits after the new installation by using the recovery disk

    I have a Toshiba Satellite A300 A300 / M00 and when I got it, it had Windows Vista Home Premium 32 Bit. But after awhile, I started to have problems so I decided to reinstall Vista on my laptop. After crossing with the product recovery media, my syst

  • Keys get stuck on the Satellite A60 - 142

    Hello all, I hope someone can help me here.Currently I; m using my laptop frequently, I write a thesis.I have problems with my keyboard: some keys stuck after working for a while, it is never from the beginning. The keys that get stuck caps lock, shi