All layers of LayerKind.NORMAL if the document is not active?

I just discovered the strange behavior. If trying to find the type of layer to a layer in a document that is not currently the activeDocument, all layers are returned as LayerKind.NORMAL. However, if the document is the activeDocument, the correct kind of layer is returned.

For example:

Screen Shot 2016-07-24 at 16.23.16.png

Two documents open, if I have the other document selected, this:

documents[0].layers[1].kind

Will return "result: LayerKind.NORMAL'., but if I then select the above document, it will return" result: ' LayerKind.CURVES

What is happening with this?

Yes, it's a weird bug. It affects other functions when open dealing with scripts with several documents. You really need to make sure that everything you do on a particular file, you must have this file in the current document. For example, you can not duplicate the layers in a file that is not the active document. I'm sure there are other examples, but this is the one I met.

Tags: Photoshop

Similar Questions

  • Until a few days ago I was able to print a PDF from Acrobat Reader ms in Windows 7.  Now I get "the document could not be printed."  The next panel says "there are no pages selected to print," even if all the pages have been selected.  Thoughts?

    Until a few days ago I was able to print a PDF from Acrobat Reader ms in Windows 7.  Now I get "the document could not be printed."  The next panel says "there are no pages selected to print," even if all the pages have been selected.  I've uninstalled Reader and reinstalled, but the problem remains.  I also tried to repair the installation and that doesn't work anymore.

    Thanks for the tip.  It turned out that kind Reader has been commissioning in protected mode.  I changed the setting and it prints now as before.

    Thank you

  • I document for which the security of the document does not allow me to assemble documents, copy of content, page extraction, form filling, signature & creating the model. Buy adobe acrobat won't solve all?

    I document for which the security of the document does not allow me to assemble documents, copy of content, page extraction, form filling, signature & creating the model. Buy adobe acrobat won't solve all?

    The result is that Adobe does not provide any software to defeat the security of a PDF file. If the creator of the PDF file set to this level of security, intentionally or not, that's what it is! The solution to your problem is to go to the creator of the document and ask the password or an unprotected PDF file version.

    -Dov

  • The Document could not be printed, he have no selected to print pages

    We are currently problems since the update to Adobe Acrobat Reader DC 15.010.20060

    Our customers are all running win 7

    When opening pdf have been created by the analysis of a printer MFP file we get a problem that we can't print them.

    What is happening with HP printers and brother.

    The errors that we receive are "the Document could not be printed" "there are no pages selected to print.

    I have read in these forums and trying different options such as printing and image and turn off safe mode, I also re-installed the drive.

    This is impacting on several PC and we tried two Kyocera, printer Sharp, print preview does not work at the time that we receive this error.

    Any help would be welcome.

    Thanks Tariq for the new update. Problem solved.

  • The document could not be printed

    When I try to print my invoices from the site TREO or Telus with Adobe Acrobat, and yes my printer works, as I've tested it using other programs and has all the drivers up to date.

    This is the message I get:

    "The document could not be printed.

    Then, I check OK

    Then, "He didn't there has no pages selected to print."

    I tried leaving all the pages print, selection of a page by typing in a page number, print as an image, save it to my computer and try to print from there, when you rename the file and printing, emailing myself as an attachment and printing. Nothing has worked. I am convinced that it is a problem with Adobe. I downloaded the latest version: Adobe Acrobat Reader DC and elders worked at least. This one I can't print anything since.

    Help, please! I've wasted enough time already on this point, I am trying to print my bills!

    Chrome uses its own Viewer PDF, not the Adobe/Acrobat Reader plugin.

    Try the following: open Adobe Reader | Change | Preferences

    • under Documents, change "Show the documents in PDF/A mode" Never
    • under the (enhanced) protection, clear protected at Startup Mode

    If this does not help, tell us your version of Reader installed.

  • Whenever I try to save a PDF file using Adobe Acrobat DC (Version 15.1), I get the error "the document could not be saved. There was a problem reading this document (21). »

    Whenever I try to save a PDF file using Adobe Acrobat DC (Version 15.1), I get the error "the document could not be saved. There was a problem reading this document (21). "When I click ok, an error message appears saying:"insufficient data for an image. "I tried to do a repair on Acrobat, but it has not changed anything. I also tried some updates, but nothing that is. I did hours of research on the Internet and have found nothing so far. Does anyone know why this error keeps appearing?

    Thank you!

    Hi all

    This problem has been corrected and is implemented to come or update.

    Kind regards

    Rave

  • Adobe Reader X 1 as the document could not be printed.  There are no pages selected to print.

    I am a user of Windows 7 with the latest version of Adober Reader X 1 installed.

    For some time, I was not able to print a pdf document.   Maybe boot from the installation of X 1 but is not sure.

    I have two error messages

    First of all - the document could not be printed

    Then - there is no pages selected to print.

    Select all pages or just a page does not change the results.

    The same document may be transferred to another windows 7 PC and prints ok using Reader X 1

    I am running

    Adobe Reader X 1 Version 11.0.09

    Service Pack 1 of Windows 7 Home Premium 64-Bit

    I tried to reinstall Adobe Reader

    I tried to disable security

    I tried selecting another printer

    A forum suggested to install Adobe Reader 9 however I can't find a copy of this installation.  It seems to be more supported.

    Hi Pat

    Thank you

    I went specifically looking for your answers.   I found answers like this

    Two things to try: open Adobe Reader | Change | Preferences

    Disable protected Mode [Edit |] Preferences | Security (enhanced)]

    the value of the documents in PDF/A mode forever [Edit |] Preferences | Documents]

    (Protection): uncheck the box "enable protected at Startup Mode

    Through some of your answers, I found there are 3 things to try.  The first 2, I had tried.   3 fixed my problem.  Maybe I had read that 3rd earlier and thought it was the same as the first.  Apology.

    Thank you very much for your help.

  • The documents are not displayed

    My items in the Documents are not displayed.

    I recently downloaded OS X El Capitan.   The problem might be related to that?

    Thank you very much.

    Have you tried a Spotlight search for the name of one of these files?

  • "The document could not be imported" - iBooks author help

    With the help of:

    MacBook Air OS X El Captitan 10.11.3

    Keynote 6.6.1

    I try to import a Keynote file into iBooks author using the Widget but get the following message is displayed:

    "The document could not be imported.

    Thoughts? Solutions?

    Some seem fine do in articles and videos online. Several times, I get the same message after trying several keynote files.

    Hey there jpatronic,

    I see that you experience a problem when you attempt to use a Keynote presentation with iBooks author. I have an article for you related to this topic, and it can be found here:

    You can also drag a Keynote (.key) file directly to the book page without adding a widget to Keynote first.

    Important: Images in a Keynote file should not be higher than 25 megapixels (5000 x 5000 pixels) or 50 MB.

    You can't interact with a Keynote slideshow in iBooks author, but readers can interact with it in the finished book.

    iBooks author: Add a Keynote file

    https://support.Apple.com/kb/PH2793

    Thank you for coming to Apple Support communities!

  • "Title of the document is not a valid windows32 application" error message when opening Word.

    Whenever I try to open a Word document on my desktop, you receive this error message. "Title of the document is not a valid windows32 application.

    can how I recover from this problem, thank you!

    Hi Lydia, I believe it's your first post here, welcome to our community!

    You can try to repair Microsoft Word for this problem.  Here's how.

    1. Go to start > Control Panel.  Select programs and features.
    2. In the list, find Microsoft Office and highlight it.
    3. Choose change on the toolbar and then click "fix."

    Once finished, it will ask you to restart your computer.

  • Highlighted in the documents does not print.

    My HP309g works fine except the underscore in the documents does not print.  I use Word 2010 and Word Perfect X 4.  My OS is Windows 7 64 bit.

    Hello Pamelia

    Which application use? Have you tried to use Wordpad or another application with highlights?

  • I use Adobe Acrobat Pro and when I click on save as PDF... PDF reader enable adding text in the Documents does not appear. Why?

    Can you please tell me why?

    With my Adobe Acrobat Pro, when I click on save as PDF... PDF reader enable adding text in the Documents does not appear.

    Thank you

    Elina Mackay

    Adobe change Acrobat a lot between releases. Make sure you follow instructions to the same version you have.

    If this looks OK, let us know the exact version you have (help > about Acrobat Pro).

  • The document could not be printed. There are no pages selected to print

    Get this error: the document could not be printed. There are no pages selected to print

    -With the help of Windows 7 (64-bit)

    -Acrobat Reader DC

    -Tried repair install

    -Have also checked for updates.

    -Tried to print as image as option

    It is not a printer problem, like everything else prints fine.

    Any help would be appreciated. spends hours looking for an internet solution.

    Chrissy

    Ok!!! I solved the problem...

    For anyone else out there with the same problem... try this:

    -Open a PDF document

    -Edit

    -Preferences

    -General

    -Security (enhanced)

    -Uncheck "Enable Protected Mode at startup.

    -Click OK, and then restart the application.

    I had protected view selected off also.

    Hope that helped someone. Drove me nuts!

  • Read reads aloud just one page and stops; 'Read the document' does not work

    My Adobe Reader X software! worked very well in the function "Read Out Loud". I just downloaded Acrobat Reader DC and am disappointed by the Read Out Loud feature. It will read a single page and then stop; The "read at the end of the document" will not work. The player will stop after reading a page. Help!

    Hi Evona,

    I recommend to Open (ctrl + k) Reader preferences and uncheck 'Enable protected at Startup Mode' in the category '(enhanced) Protection' and restart the CD player. Let me know how it goes.

    Kind regards
    Rahul

  • The toolbar of the Document does not appear in Dreamweaver CC

    You should be able to see in the image below, the toolbar of the document does not make me unable to change between mode live view, code view, and split view.

    error.jpg

    I don't know how it happened, because I use the program on a computer at school with several classes with her in front of me.

    If anyone knows how to recover the document, I would greatly appreciate your help. I tried to reset the layout of the workspace but that did nothing.

    Thank you.

    Go to the menu view > toolbars > put a check mark by Document

Maybe you are looking for

  • Satellite A200-1AX - recovery in German instead of the language CD English

    I reinstalled the recovery of the proceeds of my satellite a200-1ax disk and operating system running now in German language. and it's only now that I noticed that the drive that comes in the package is in German but I chose the English language at t

  • Ever wondered where one uses resources of your PC?

    If you have ever wondered where one uses resources of your laptop you should take a look at the "resource monitor" in Windows.  It will give you a break down of the applications and services are using your CPU, RAM, hard disk and network resources. T

  • Can I remove all these files "Temp" folders

    C:\TEMPC:\Windows\TempC:\Program Files\HP\TempC:\Documents and Settings\Administrator\Local Settings\TempC:\Documents and Settings\All Users TempC:\Documents and Settings\Default User Settings\TempC:\Documents and Settings\Tim\Local Settings\TempC:\W

  • Biz & HP Home

    Hi, does anyone know why the Officejet 6500 has more is not supported for scanning via the HP Home & Biz application while the OfficeJet 6500 has actually is? There is an update planned for the printer?

  • I moved to Australia and equivalent printers cartridges give me an error message

    I have a British original Deskjet F4580 taking HP 300 series ink cartridges.  HP Australia recommend HP 60 cartridges local equivalent.  They fit perfectly, but I get an error message indicating that they are incompatible.  I can't use the Australian