I want to get started doing some scripts with Photoshop and I wonder if there's an editor out there that either already has Photoshop's objects or allows to load Photoshop's DOM for intellisense.
Any pointers?
The Extendscript Toolkit that comes with Adobe suite is pretty much all you need. It even has the entire DOM reference available through the help menu. It does code completion (intellisense) and you can run/debug scripts in the editor.
Related
There are many GUI automation tools that allow clicking on a specified image (well-known Sikuli, for example). Is there any way to click on the specified text, not image? This way the tool will:
make screenshot
recognize text on it
find text position (somehow)
send click event to this position
It would be much easier to write tests using this approach (many interfaces have text button, inputs etc.) rather than make screenshots for every single element.
I've seen some OCR feature in Sikuli but it didn't work for me (I tried invoking click('some-text-here').
Sikuli built-in OCR features are pretty buggy and unstable. All (or at least most of) the related issues are listed in this BUG. However there are few possible workarounds which are, however, not also always applicable..
If the text is known, you can take a screenshot of the text and then look for it as a screenshot. For example if you know exact font of this text, you can automatically generate such text on the screen and use it as a pattern to locate it elsewhere.
The built-in tesseract based OCR, performs significantly better when the font is bigger, "fatter" and in Grayscale (usually). Hence you might do some background image processing before attempting the actual recognition. I used ImageMagick to resize and filter the images for better recognition. It can be in the background as a command line tool. For example:
convert -filter spline -resize 100x -unsharp 10x20 -type Grayscale
I am aware that this does not answer your question directly but these are steps you might consider taking towards the final solution.
I'm a developer at Deskover company and we are currently developing an application, UiPath Studio that meets your needs.
We provide text recognition on various technologies with 100% accuracy, ability to find specific text in an area on screen, a control or an entire window, and also ability to click text or controls.
You can execute different actions, sequentially by creating workflows.
We at Deskover are big fans of Sikuli project. We actually use the same image recognition engine in UiPath Studio.
UiPath Studio is a visual tool that helps you create workflows easily, but you can also use the underlying API and implement an application that extracts text and clicks on it.
You can find more details about the UiPath library here.
i have a task about .PDF files that pdf file should open in browser with custom zoom level of 125% or 150%, i tried many times, but it is not working properly in firefox, as it implements zoom on PDF file but it switch on page#2, i study the adobe's given parameters for PDF file and tried to use them as following in href,
"SICS-47.pdf?page=1&zoom=125,0,0"
"SICS-47.pdf#page=1&zoom=125,0,0"
but no success, anyone here can help me please ?
thank you so much in advance.
The adobe partner reference states on page 5 that this is for IE and Netscape. I'm not sure how old this document is, but you might want to check the Firefox support for this functionality as it could be incomplete.
Reference: Adobe Partner
Another thing you could do is modify the PDF content to make sure the document opens properly. Depending on which tool you're using you could use a free library like the Perl API2 library or a paid tool like the Java iText library. Maybe there are command line tools out there that do the same, but I'm not aware of them.
I'm using Adobe Illustrator CS5 and ExtendScript Toolkit CS5.
I've got a very involved script and alert() isn't working anymore because stuff is within a loop. How can I simulate the fact that I'm using a specific Illustrator document so that I can use the debugging features of ExtendScript Toolkit?
I want it to be the same as being inside an Illustrator document and going "File->Scripts->Scriptname". If I just test the script inside ExtendScript, I get an error on
if (app.documents.length > 0) {
Thanks!
Solved!
I had to change the target application to Illustrator within ExtendScript Toolkit and set the debug level to $.level=2
to get it to work properly. I can now have breakpoints and all that good stuff.
I just installed Visual Basic 2010, went through some tutorials on how to display files, but can't find any material on how to select and embed existing PDF files into a form. Any suggestions or pointers in the right direction would be great, thanks!
Just embed a browser control in your form and navigate that to the PDF file. That should do the trick.
There aren't too many out of the box controls for that. Anyway, this guide might be helpful:
http://visualbasic.about.com/od/quicktips/qt/disppdf.htm
Disclaimer: I work at Atalasoft.
We make a GUI control that can load a bunch of image formats, and an add-on to turn PDF pages into images. The GUI control (ImageViewer) is part of our free SDK (DotImage Photo) and you can learn about the add-on here: http://www.atalasoft.com/products/dotimage/pdf-reader
Just wondering if there is a way to batch edit pdf documents and set the "Page Layout" and "Magnification" attribute of a document so that they all the documents are displayed the same way if you open them.
I'm a Mac so a Automator or AppleScript solution would be cool! BTW I have Acrobat Pro.
Thanks!!
this could be done with some really hard work via gui script (NOT recommended) or by way of javascript which has it's complications as well but is much more reliable than gui scripting you will need the the javascript reference to learn how to do the javscript part of the script and you will have to research how to run the js in your applescript if you have questions I'll be happy to try to help but I'm not just gonna hand you the code to this job.