Applescript: missing required parameter "including hidden layers"

I've used this script (below) for packaging files in InDesign CS3, but when I upgraded to CS4 I always get this message: "Missing required parameter 'including hidden layers' for event 'package'." Does anyone know how to include this and where it goes?
Thanks.
on run
display dialog "Whoa Dude, I'm a Droplet so drop an InDesign file on me"
end run
on open draggedItems
tell application "Finder"
make new folder at alias "Macintosh HD:Users:Melanie:Documents:ScriptFiles:Packaged:" with properties {name:"_Folder"}
end tell
set folderPath to "Macintosh HD:Users:Melanie:Documents:ScriptFiles:Packaged:_Folder:"
repeat with currentFile in draggedItems
tell application "Adobe InDesign CS4"
set openedfile to open (currentFile as alias)
set theDoc to (document 1)
tell document 1
package to folderPath copying fonts yes copying linked graphics yes copying profiles no updating graphics yes ignore preflight errors yes creating report yes
set fileName to (name of theDoc)
set filepath to folderPath & fileName & ".pdf"
export openedfile format "Adobe PDF" to filepath using "[Smallest File Size]"
save openedfile
close openedfile
end tell
tell application "Finder"
set NewName to fileName & "_Folder"
set name of folder folderPath to NewName
end tell
end tell
end repeat
end open
---------

I don't use InDesign/CS4, but it seems clear that the 'package' command now has additional parameters that you're not including in the command.
Since it's telling you that 'including hidden layers' is the parameter that's missing, just append it to the packagecommand, with either a 'yes' or a 'no' depending on what you want:
package to folderPath copying fonts yes copying linked graphics yes copying profiles no updating graphics yes ignore preflight errors yes creating report yes including hidden layers no

Similar Messages

  • Missing Required Parameter 'from' for event 'open' -- InDesign CS3 Error

    Now that I've upgraded to OS 10.6, and I'm getting this weird error message (Missing Required Parameter 'from' for event 'open') when I open CERTAIN InDesign files by double-clicking on the icon. Other files open okay. Everything SEEMS to open okay when I open CS3 and go to FILE and OPEN.
    Anyone else having this problem? Any advice?

    I was having this problem too and then noticed that the files that would not open had special characters in the name, # or % for example.
    I changed the name to exclude these characters and they all opened just fine.
    If that doesn't work, it may be, if you use it, Suitcase Fusion. Extensis says that if your computer name is too long or also has special characters in it that it could be a problem in OSX 10.5 and later. Go into System Preferences/Sharing and edit your name to within 20 simple characters.
    I hope this helps.
    Message was edited by: Dyrian

  • Getting an error message trying to open a file, "Missing required parameter 'from' for method "open'. What do I do?

    Getting an error message trying to open a file, "Missing required parameter 'from' for method "open'. I've tried opening in CC and CS5. What do I do? Can the file be salvaged?

    Try opening as a copy, and/or copying the file to a new location and try opening that.

  • Hidden Layers printing unwanted blank pages.

    When I use layers to hide portions of a document that I do not want to print all is well on pages that only include hidden layers and these pages do not print UNTIL I add page numbers to the document, and then all pages print - including the ones that only include hidden layers, and these pages are blank except for the page number.  I do need the page numbers included - so is there any way to not print pages that only have a page number on them?

    Have you considered using Conditional Text for the answers?
    I am not familiar with conditional text – I will need to investigate.
    It's not clear to me, either what the numbering scheme here might be. In the teacher's edition, do the pages with the answers get numbered in sequence, or do they have a special numbering system applied?
    Good question – In the teacher’s Answer Key I could go either way. My first choice would for the pages to be numbered sequentially with the first printable non-blank page to be #1. If the pages printed with the same page numbers that they have in the book that would not be the end of the world, there would be gaps in the page numbers for the non-printed chapter content – either way I don’t want the blank hidden content pages to be included in the document.
    If they are numbered in sequence, how do you synchronize numbering between the two editions if you don't include blank pages?
    Sequencing and synchronizing page numbers is not a significant problem – the instructor is just glad to have the answers and they do not care a lot about how the pages are numbered. However, having said that it would be really nice if a future version of InDesign Books could create both sequential page numbers and a Table of Contents for only the printed pages in an output document that would have layers that are not hidden.
    How is this bound? And how is it printed? Changing the page counts can be problematic unless the answer pages can be tipped in at binding.
    We deliver all of our documents electronically on CDs as PDF files so binding and printing are not problems for us.

  • How do I export to PDF in InDesign without the hidden layers

    Hi there
    This is probably a simple solution but I am trying to export a document to PDF in InDesign without the hidden layers.
    i.e - I have created a document that includes images etc from an existing PDF.
    When I open the new PDF and use the 'find' tool, Pro is highlighting words on the hidden (original pdf).
    I have tried exporting only the visible layers but is there a setting in InDesign that I can use to export only the visible content to pdf?
    Thanks in advance.

    Jenjimay wrote:
    I have tried exporting only the visible layers but is there a setting in InDesign that I can use to export only the visible content to pdf?
    Even if you mask off part of a PDF, or place a white rectange on top of it, the text will still be selectable. Other than with raster images, InDesign is not smart enough to clip off parts of a PDF (or rather, it's smart enough to leave them as they are). PDFs can contain incredibly complex objects, and any clipping routine would probably make as many mistakes as it solves problems.
    Introduce a small Transparency to this image or one on top of it, then export with Acrobat 4 (PDF 1.3) settings. Since that old version does not support native transparency, ID is forced to redraw the image, and then it will clip off excess data.

  • Why do I keep seeing Missing required field: Publication when I try to publish a file in iBooks format?

    I have produced a book in iBooks format and filled in everything asked for including but I can't slide the file into the window area and I get a message, Missing required field: Publication. I don't understand what I need to do to complete the transaction. I hope someone can understand and tell me what to do. Thank you.

    Thank you. You're dealing with an old woman doing her best here.   Sorry, I was somewhat distracted when I posed the question having been wrestling with it all afternoon. Yes, I am using iTunes Producer and have filled in all the information requested including cover art. The file is saved in iBooks format.
    I click on Files at top left, which I assume to be the thing to do, and get a a new page showing red circle with a number 1 in it. Clicking on that produces this :
    "Drag and drop the full book that will be used on the iBooks store. Books can be in the EPUB or iBooks format. Submitting a new book version will replace the existing version on the iBooks store.
    Missing required field: Publication. "
    I have tried to drag and drop the file into the box on the left but it won't allow me to. Clearly something is missing but I don't know what. I am just baffled as to what is wanted.

  • Custom Tag is missing required attribute property

    Hello,
    Here is my struts config file source;
    <global-forwards>
              <forward name="mainpage" path="/index.jsp">
              </forward>
              <forward name="CustomerDetailsForward" path="/GoToCustomerPage.do">
              </forward>
         </global-forwards>
         <!-- Action Mappings -->
         <action-mappings>
              <action path="/SubmitCustomerForm" type="action.SubmitCustomerForm" name="CustomerForm" scope="request" validate="true" input="/CustomerDetails.jsp">
                   <forward name="success" path="/Success.jsp">
                   </forward>
                   <forward name="failure" path="/Failure.jsp">
                   </forward>
              </action>
              <action path="/GoToCustomerPage" type="org.apache.struts.actions.ForwardAction" parameter="/CustomerDetails.jsp">
              </action>
         </action-mappings>
    And my index.jsp source;
    <html:html>
    <head>
    <html:base/>
    </head>
    <body>
    <html:button></html:button>
    <html:link forward="CustomerDetailsForward">Go To Customer Form </html:link>
    </body>
    </html:html>
    And here is the error;
    Error Message:JSPG0227E: Exception caught while translating /index.jsp: /index.jsp(13,1) --> JSPG0006E: Custom Tag is missing required attribute property
    Root Cause:com.ibm.ws.jsp.translator.JspTranslationException: JSPG0227E: Exception caught while translating /index.jsp: /index.jsp(13,1) --> JSPG0006E: Custom Tag is missing required attribute property     at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitCustomTagStart(ValidateVisitor.java:304)     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:267)     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:309)     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:268)     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:309)     at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:139)     at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:121)     at com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:121)     at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:181)     at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:83)     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:349)     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:317)     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:226)     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:131)     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:270)     at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:308)     at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:472)     at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:111)     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)     at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)

    volkov wrote:
    Error Message:JSPG0227E: Exception caught while translating /index.jsp: /index.jsp(13,1) --> JSPG0006E: Custom Tag is missing required attribute propertyWhich is line 13 then? And check the syntax for that tag.

  • Unable to resolve "Missing Required java Project : com.sap.dictionary"

    HI ,
      Iam praveen , working on web dynpro's , I imported a project template and repaired it and all the .jar files are included in the project . But still am getting some errors like the below...
    Error               Missing required Java project: com.sap.dictionary.services.     com.sap.dictionary.runtime          Build path
    Error               Missing required Java project: com.tssap.sap.libs.logging.     com.sap.dictionary.runtime          Build path
    Error               Missing required Java project: com.tssap.sap.libs.xmltoolkit.     com.sap.dictionary.runtime          Build path
    Error               Missing required Java project: org.eclipse.core.resources.     com.sap.dictionary.runtime          Build path
    Error               Missing required Java project: org.eclipse.ui.     com.sap.dictionary.runtime          Build path
    Error               The project was not built due to classpath errors (incomplete or involved in cycle).     com.sap.dictionary.runtime          
    can anyone help me in resolving these problems, i have been trying to resolve this problem , but failed. send me solution if any one can solve it
    -Praveen

    Hi praveen,
    your project refers to a dictionary that you haven't in the project. Besides, right click on the WD project and check all the external references to others projects. You must open the external projects pointed by your WD.
    Hope this help you,
    Vito

  • Missing required systems fonts or cmap files

    Good morning,
    We have a serious problem with Adobe Suite (including InDesign 6).
    When we launch In Desing we have an error message :"Missing required systems fonts or cmap files".
    Can you help us ?
    PS : We use windows 7 X64 with Adobe In design6.

    This thread might help: http://forums.adobe.com/thread/328866?start=0&tstart=0
    But it could also be an installation problem or a permissions problem. Does you user account have full access to the lacation where those files should be stored?

  • Unable to save a form with missing required fields

    I have a form, with required fields, as part of the new hire process. I would like to make sure the user fills in the required fields before closing/saving the form.
    I have a custom script that highlights the missing required fields when the complete/validate button is clicked.
    This, however, doesn't stop the user from saving the form. As a result, we are getting incomplete forms returned.
    Is there a way to stop the user from saving the form until the required fields are filled ?
    Thanks in advance.
    Aditya

    I have a "validate" button that sets a flag (for workflow). This button will perform the check and highlight the missing fields.
    Once the user completes the form, he/she saves and emails the form. The reason for not having the email button is because not all users will have outlook and wouldn't want to go through the wizard.
    I understand your point but I need to know if there is some solid way of not allowing the users to return the form without completing the form.
    If I include an email button, the users can still save, by using the toolbar menu, and email the incomplete document.
    As we are planning to implement Digital Signatures, would it be possible to have the check in the presign event. Will this prevent the document fron being signed until the required fields are filled ?
    Thanks
    Aditya

  • Input file missing required key: [Distribution] GUID.

    Hi,
    I freshly converted a .bld (LV7.1) file to .lvproj (LV11) through Tools > Convert Build Script. It ran well.
    Opening the .lvproj, I then successfully build the .exe but failed on the Installer :
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    CDK_Build_Invoke.vi.ProxyCaller >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> IB_MSI.lvclass:Build.vi >> IB_MSI.lvclass:Engine_Build.vi >> NI_MDF.lvlib:MDFBuildDist_Build.vi
    Loading product deployment information
    Adding files to installer
    Validating...
    Copying files...
    Scanning files...
    Updating files...
    Build complete successfully.
    Done adding files
    Preparing to build deployment
    Copying products from distributions
    Building deployment
    Copying setup files
    Setting merged database information
    Setting product information
    Setting developer part information
    Starting final build
    *** Error: An internal tool or library returned an error. (Error code -21)
    Error Messages
    Input file missing required key: [Distribution] GUID.
    *** Error Details:
    Error in MDF API function: _MDFBuildDist_Build
    Error List
    .\InputParser.cpp(5420): InstallerError 105
    Input file missing required key: [Distribution] GUID.
    <No Debug Message>
    *** End Error Report
    Done building deployment
    Any idea ?
    Many thanks

    Not too sure... Is your installer supposed to create any keys in the registry?
    Anyway, open your installer's build specification and check all the sections, I would suggest to bring specific attention to the following sections :
    - "Source Files", because here, all the "extra files you want you installer to place in specific format have to be included/referenced in the project (.lvproj)
    - "Registry", that's only if the installer is supposed to create keys in the registry
    - "Additional installers", make sure you only tick the boyes corresponding to drivers/module that are required for you application and also make sure that when building, the installer you used to install those drivers/modules on your computer are still available.
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Missing URL parameter: IterationId

    Error:  Missing URL parameter: IterationId
    I get this error when I add a footer to my report.  Is there a fix?
    Report viewer 2010
    Visual Studio 2008 sp 1
    .Net 3.5
    Browser = firefox, have not tried ie.
    IIS = whatever ships with Windows 7 prof.
    Thanks,
    Sam

    (Apologies for bumping this old, old thread; it was the first hit in Google when searching for this problem myself, so I thought I'd post how I resolved my issue in case others stumble upon it.)
    Are you sure this is just from adding a footer?  I was getting this error message myself, and it was due to the Line control.  For whatever reason, the Line control tries to include a standard blank image right after it, but the URL is missing
    that parameter in FireFox and Chrome (but not IE, as far as I can tell). When I remove all the Line controls, the error goes away.  Make sure you don't have any Lines in your footer (or anywhere else on your report, for that matter.)

  • Determine if hidden layers exist

    I am building a script to cleanse photoshop documents, and one of the options I am including is to remove all hidden layers. There is no direct command to do so (or none that I have seen), so I used a chunk of code from ScriptListener to perform the 'Delete hidden layers' command.
    I only want to enable this option if there are layers that are hidden, so I'm wondering if there is a simple way to determine if any layers are hidden in the document (aside from looping through all of the layers). Or, if there's a way to determine if the 'Delete hidden layers' command is enabled or not, since that is only enabled when there are hidden layers.

    I would just bung the code between a try catch block (but I'm lazy )
    If you did want to check this should be fast...
    alert(hasHiddenLayers());
    function hasHiddenLayers(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
            if(!desc.getBoolean(charIDToTypeID( "Vsbl" ))) return true;
    return false;

  • MY system folder, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac) How do I remove them

    I have a Macbook Pro running Leopard 10.5.8. I had a problem with my my operating system (my fault, I moved a file I shoudnt have) couldnt boot up but was able to boot up from a backup. I managed to repair my original system except now all the system folders, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac).  For the most part the dupes are an exact copy, but not always.  I want to remove them to free up space and cant imagine duplicate folders in the /system/library are not hindering my computer. But I dont know where to start and am afraid of doing irreparable damage. Any ideas

    pacull,
    Use iCal>View>Show Notifications to choose what to do with the notification.

  • OEPE 12.1.3.3.1 Installation Error : Missing requirement

    Hi, I got error while installing OEPE 12.1.3.3.1 on Eclipse Luna SR1 (4.4.1) with WTP 3.6.2. Am I missing something in order to install OEPE? Below are the errors :
    Cannot complete the install because one or more required items could not be found.
      Software being installed: GlassFish Tools 7.3.3.201412231459 (oracle.eclipse.tools.glassfish.feature.group 7.3.3.201412231459)
      Missing requirement: GlassFish Tools 7.3.3.201412231459 (oracle.eclipse.tools.glassfish.feature.group 7.3.3.201412231459) requires 'org.eclipse.sapphire.feature.group [8.1.0,8.2.0)' but it could not be found

    The issue has been resolved. The installation of 12.1.3.3.1 from the online repository, Eclipse Marketplace and the network installer now functions correctly.

Maybe you are looking for