Understanding the object model yh

Dear all,
I'm building a simple PDF export script. Before exporting the script will search the flattenerpreset collection for a specific preset - if found use, else alert and exit. For this purpose I've located the class FlattenerPresets and the method "everyItem(): Array of FlattenerPreset". But when testing app.FlattenerPresets.everyItem(); I receive the error: Object does not support property or method 'FlattenerPresets'. 'Application' instead of 'app' gives me a different error: undefined is not an object.
My apologies for bugging you gentlemen with another banality. PLease bear with the beginner :-)
Sincerly,
Rasmus

Dear David and Kees,
Do you have a hint on how to use the returned variable from my SelecFlattenerPreset function in my following exportSinglePages function? It appears that InDesign uses the flatterpreset defined in the joboptions file and not the string I serve to the app.pdfExportPreferences.appliedFlattenerPreset property.
function selectFlattenerPreset() {
try {
var myFlattenerPresets = app.flattenerPresets;
var thePref = "GWG_2400";
var i = 0;
while (i < myFlattenerPresets.length && myFlattenerPresets[i].name != thePref) i++; {
if (i == myFlattenerPresets.length) {
alert(thePref + " can't be found");
else {
return thePref;
function exportSinglePages() {
[snip variables]
for(var myCounter = 0; myCounter < myDocument.pages.length; myCounter++){
myPageName = myDocument.pages.item(myCounter).name;
app.pdfExportPreferences.pageRange = myPageName;
app.pdfExportPresets.appliedFlattenerPreset = "GWG_2400"; // <- returned variable goes here - but how?
myDocument.exportFile(ExportFormat.pdfType, myFile, false, myPDFPreset);

Similar Messages

  • OC4J 10.1.2 - No XPathFactory implementation found for the object model

    Hello,
    We are doing some maintenance on an old 10.1.2.3.0 container. The project has to be extended with a library built with xml-apis-1.3.03.jar. I know you will suggest a upgrade, but that is a no-go - sorry, since other projects also are running on this server. So I hope some of you remember or know how to avoid or replace the oracle xml parser.
    It seems like it gets the wrong XPathFactory
    XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom
    with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model:
    I have searched the documentation for 10.1.2 and everything relevant on the Internet for a solution, but i seems to non-trivial when dealing with oracle xml parser. We tried to put the jar-files (xml-apis-1.3.03.jar, xercesImpl-2.8.0.jar, xalan-2.6.0.jar) in the endorsed library under the jdk, and we have already added <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true"/> to our orion-web.xml.
    I also know that the <shared-library> tag got introduced in 10.1.3 where you easily can replace the parser.
    Any ideas on how to deal with this exception or comments to the interpretation on the exception are appreciated.
    -MK

    Hello,
    You are correct, in OracleAS 10g (10.1.2), Oracle does not expose JMX MBean server.
    OracleAS 10g R3 (10.1.3) is a J2EE 1.4 container will full support for JMX, and all the JSR-77 MBeans exposed. You can also create and register your own MBeans.
    Could you give us the different requirements you have around JMX for your application?
    Regards
    Tugdual Grall

  • Help to find out some of the object model for InDesign preference

    Hi All,
    I'm writing script to update the specific client preferences for each and every preferences of InDesign CS5. I couldn't find some of the object models in Extendscript help. If someone knows, please help to find out this.
    These are the list. Also refer screenshot.
    1. Dictionary Preference - Language English: USA
                                          Hyphenation
                                          Spelling
                                          Double Quotes 
                                          Single Quotes 
    2. Autocorrect Preference - Language English: USA
    3. File Handling Preference - Default Relink Folder
    Many thanks in advance.
    Peru.

    I looked and was not able to find a way to do this.

  • How can we provide suggestions/feedback to MS for improvements to the object model interfaces for Transport Agents?

    Having worked on TA's for a while now we've found there are several things missing in the object model for our requirements. Consequently we have some horrible code that need to do some things directly either with MIME or TNEF - which is a crying
    shame as MS must have all the code to do the things we need anyway, it's just that the object model is deficient.
    It'd be useful if there were an Exchange category on MS Connect where we could submit our suggestions, but as far as I can see, there isn't one.
    So, where do the Exchange TA developers get to hear customer feedback?

    Hello David,
    Sorry for not getting back to you sooner. You can provide feedback on Transport agents by using this site:
    http://officespdev.uservoice.com/.
    With regards,
    Michael | Microsoft Exchange Developer Content
    The
    Exchange Development Forum Guide has useful information for using the Exchange Development Forum.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Query Crawl Log using the object model

    I'd like to query from code the items that have been deleted from the Crawl Log. I see the following method in MSDN but it does not seem to exist in the API:
    CrawlLog.GetCrawledUrls method (Boolean, Int64, String, Boolean, Int32, Int32, Int32, DateTime, DateTime, Int32, Int32)
    http://msdn.microsoft.com/en-us/library/dn794540(v=office.15).aspx
    Note that it's overload
    http://msdn.microsoft.com/en-us/library/jj264492(v=office.15).aspx is available, but is obsolete and does not have the isDeleted parameter I need.
    Can I somehow call the above method or is there any other way to achieve my goal?

     Hello Peter,
     Thank you for your question.
     We are currently looking
    into this issue and will give you an update as soon as possible.
     Thank you for your understanding
    and support.
     Best Regards,
     Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • Where is the document describing the object model for creating the UI elements

    Whre is the document that explains what UI objects are available ie:
    Window
    Panel
    statictext
    button
    I don't see it in my photoshop scripting guide. Thank you.

    It should be in the Javascript Toolkit Guide which can be found in your Adobe install folder:
    ..Adobe\Adobe Utilities\ExtendScript Toolkit 2\SDK\
    good luck.

  • Create a site collection with dedicated content db with the help of server object model

    Hi,
     I have a requirement to implement a create a new site collection with dedicated content db. i have got 2 PowerShell scripts which does the same. first i will  create a content  db and then create the sitecollection with contentdb
    parameter with the created contentdb name.
    Now the site collection created must contain few doc libs and few splists with look up columns, people picker data type, multiline of text, single line of text,choice field. hence i am thinking the below approach:
     1) create a web template and include sp doclibs, splists , site columns in this.
     2) i am thinking of a ui design to create the below:
     These are called "projects" which is actually the site collection with the doclibs, splists and must be created by sharepoint admin on click of a link in my landing page.end users access these "projects"  aka 
    "site collections" and uploads the documents into these projects and collaborate.
    so my question is :  On click of a button can I create a site collection with a dedicated content db based on the web template created with the  hel of  server  object model?
    The other approach is on click of this button call the power shell script which accepts the sitecollection name and contentdb name as parameter. is this possible in  server obj.model ?
    passing a paramter from code behind- visual web part ui to power shell ?
    and it should create the site collec based on the web template and create the content db.
    my doubt #3 : will it not throw error "request timed out" when creating the site collec and contentdb from ui ?

    Try below:
    http://sharepoint.stackexchange.com/questions/21606/programmatically-create-a-site-collection-in-an-existing-mounted-content-databa
    PowerShell is just a wrapper for the object model. You shouldn't need to reference PowerShell in your feature, just create the new site collection with C# inside your feature. There's a blog post here that illustrates some code that may get you started.
    http://blog.mastykarz.nl/programmatically-creating-sites-site-collections-custom-web-template/
    http://blogs.msdn.com/b/vesku/archive/2014/06/09/provisioning-site-collections-using-sp-app-model-in-on-premises-with-just-csom.aspx
    # Enable the remote site collection creation for on-prem in web application level
    # If this is not done, unknon object exception is raised by the CSOM code
    $WebApplicationUrl = http://dev.contoso.com
    $snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}
    if ($snapin -eq $null)
    Write-Host "Loading SharePoint Powershell Snapin"
    Add-PSSnapin "Microsoft.SharePoint.Powershell"
    $webapp=Get-SPWebApplication $WebApplicationUrl
    $newProxyLibrary = New-Object "Microsoft.SharePoint.Administration.SPClientCallableProxyLibrary"
    $newProxyLibrary.AssemblyName = "Microsoft.Online.SharePoint.Dedicated.TenantAdmin.ServerStub, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
    $newProxyLibrary.SupportAppAuthentication = $true
    $webapp.ClientCallableSettings.ProxyLibraries.Add($newProxyLibrary)
    $webapp.Update()
    Write-Host "Successfully added TenantAdmin ServerStub to ClientCallableProxyLibrary."
    # Reset the memory of the web application
    Write-Host "IISReset..."
    Restart-Service W3SVC,WAS -force
    Write-Host "IISReset complete."
    If this helped you resolve your issue, please mark it Answered

  • Where did the Photoshop CC Object Model info go?

    I've been using ExtendScript Toolkit CC with Photoshop CC 2014 without issue for some time now, but yesterday all of the reference information for Photoshop CC 2014, and several other programs, disappeared from the Object Model Viewer. Does anyone know what happened to it? Is there any way to get the information back? I have already tried reinstalling ExtendScript but nothing changed.

    I have the same problem. Haven't figured it out yet...

  • HELP! Where I can find the InDesign Object Model, Methods, and Properties?

    I've done a little VB scripting with InDesign, using some of the examples I've found here and there. But I can't for the life of me find a full listing of the Object Model, nor a listing of methods and properties. I'm limited in what I can do by stumbling upon objects here and there in others' scripts. Surely this must be documented somewhere.
    One thing that's particularly confusing to me (partly because I'm not well-versed in JS), is I'll see something the following
    app.selection[0].fit(FitOptions.frameToContent)
    where "FitOptions.frameToContent" seems to reference a constant, presumably in a structure. How do I determine the actual constant value, or supply an object reference (as I'm scripting from a stand-alone VB app) such that it can "find" that constant?

    I don't know how VB5 works, but when you add reference to InDesign and declare variable, for example:
    Dim myInDi as InDesign.Application
    then when you write somewhere "myInDi." - VB6 IDE give you context list with all methods and properties of InDesign application
    here is link to AS/JS/VB CS2 reference and AS CS3 reference
    http://www.indesignscriptingreference.com/
    here is link to CS2 ScriptingGuide - 20MB ;)
    http://www.adobe.com/products/indesign/pdfs/InDesign_Scripting_Reference.pdf
    I remember that was page with InDesign Scripting PDFs on adobe site - but now all links are broken ... somebody in Adobe - web admin - should check what is going on ...
    Photoshop and Illustrator pages works fine:
    http://www.adobe.com/devnet/photoshop/scripting/
    http://www.adobe.com/devnet/illustrator/scripting/
    somebody forgot to add links to scripting section in InDesign page:
    http://www.adobe.com/devnet/indesign/
    robin
    www.adobescripts.com

  • Hyperlink in comment is not reported by Word object model

    I believe this is a bug with Word.  I have verified with Word 2010 & 2013.  I did not test with any other version. 
    If a hyperlink in a comment is the first thing in the comment, the Word object model does not report that there is a hyperlink in the comment.  If I modify the comment and add any text (including a space)
    before the link, the link will be reported by the object model.
    Steps to reproduce: 
    in a document, go to Review Ribbon and select "New Comment"
    type in text, select text, and insert hyperlink (Ctrl+k), in address field add http://www.google.com
    Add a new macro that will loop through the comments and report if a hyperlink is found, see code below
    I also verified using VSTO the same behavior
    Dim doc As Document
    Set doc = ActiveDocument
    Dim link As Hyperlink
    Dim comment As comment
    For Each comment In doc.Comments
    On Error Resume Next
    If Not comment.Range Then
    For Each link In comment.Range.Hyperlinks
    MsgBox "Link found in comment"
    Next link
    End If
    Next comment
    Byron

    Hi Byron,
    Based on the description, you can’t detect the hyperlink in the comments if the hyperlink is at the beginning of the comment. I can’t reproduce the issue by following the steps above like figure below:
    The version of Word application is like figure below:
    I suggest you trying to update the Office to the latest version to see whether this issue is fixed.
    Hope it is helpful.
    Best regards
    Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Excel 2013 Object Model - Conditional Formatting

    1) I'd like to understand the new Excel object model more thoroughly. Can anyone suggest a book?
    2) Are the formulas and/or format settings for conditional formatted cells stored in the object model or in the workbook?  I'm guessing the workbook.
    Thanks.
    Ross

    1) The object model for Excel 2013 is the same as that for earlier versions, with a few additions and omissions.
    See http://spreadsheetpage.com/index.php/books for lots of books about Excel, including programming.
    2) Conditional formatting is stored in the workbook, but you can manipulate it with VBA.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • ExtendScript2 CS3 Object Model Viewer (very complicated - any alternative viewer ??)

    hallo iam just starting with JavaScript in CS3 and what i found most confusing is the Adobe's Object Model Viewer in ExtendScript2...
    its no help whatsoever and i didnt figure out the logics of the various dictionary items listed, whatsoever...
    if this is currentlly the only complete reference to CS3 JavaScript model than god help us....
    the ExtendScript2 Object Model Viewer needs to be COMPLETELLY REWORKED to become a full powered dictionary tool instead of an unorganized pile of items
    have you tried InDesign CS3 AppleScript Dictionary in Apple's ScriptEditor... thats a dictionary of object model as i would imagine
    1) its FULLY tree-structured dictionary from topmost level down
    2) all items are categorized and sorted BY TYPE using various icons
    3) every item has a properties catalog card with nice english explanations of that function with hyperlinks to all other relevant items
    IS THERE ANY ALTERNATIVE TO VIEW CS3 JAVASCRIPT OBJECT MODEL AND NOT USE THE EXTENDSCRIPT2 WEAK VIEWER ?????

    Hi Rosta,
    I have to admit that I don't understand. I see very little difference between the ESTK object model viewer and the AppleScript dictionary viewer. If anything, I think the ESTK version is superior because it connects methods with their objects--something that the AppleScript viewer doesn't do at all. But I pretty much find them equivalent.
    Regardless, the descriptions are *identical* between the object model viewer in the ESTK, the AppleScript dictionary viewer, and the Visual Basic/VBA object browser. All descriptions come from the scripting resources in InDesign, and all languages use the same description string.
    Jongware's HTML version, however, is much better than any of the above. Its hyperlinking is very good, and everything else can be found with your browser's Find command.
    Relying on the object model viewers has freed me from the task of maintaining the reference PDFs--which was taking almost all of my time. Without that burden, I can focus on writing the Scripting Guides, Scripting Tutorial, and example scripts. While I agree that the object model viewers aren't perfect, I believe that this is a better use of my time. I think that scripting examples are more useful, overall, than reference documentation (which simply repeats the information from the scripting resources, in any case).
    One very nice thing--because we have to rely on the object model viewers, we were allowed to fix literally hundreds of errors in the descriptions in the scripting resources.
    Thanks,
    Ole

  • ESTK Indesign Object Model

    Hi All,
    How to deal with InDesing Object Model in ESTK? Is anybody have any manual or reference?
    I am having problem to understand classes (singular and plural) and method. I have not found any reference in Java script Tool Guide.
    Please guide me.
    Thanks,
    Mon

    Mon,
    The distinction between singular and plural is an artificial one. The plural refers to a class of objects, the singular to inividual objects. Take page, for instance. Under pages you see methods such as add(). Under page you see methods (move(), remove()) and properties (length, characters). But page doesn't exist as an object: instead you address an item in the class. Some examples:
    Relating to the whole class:
    myDoc.pages.add()  // add a page to the document's pages collection
    myDoc.pages.length  // the number of pages in the document
    Relating to individual pages:
    myDoc.pages.item(0).textFrames  // the text frames on the first page
    myDoc.pages.item(1).groups  // the groups on page 2
    As tomaxxi mentioned, Jongware files are very good. For some more explanation of the object model, see http://oreilly.com/catalog/9780596802523/
    Peter

  • SharePoint Object model books or resources

    Hi,
    I am recently learning sharepoint. I am very much familiar with the out of box features in  MOSS 2007. I also new to the coding/IT. Can anyone suggest some proper resourses to learn sharepoint object model. I downloaded so many eBooks but no use. They got lot of theory. I would like to know what namespace, classes, objects are there when we use them in actual work etc. Any help would be appreciated. I hope you guys understand my problem.

    Honestly you might get a lot out of the labs here: http://blogs.msdn.com/sharepoint/archive/2006/08/07/691466.aspx. 
    I would also recommend buying this book: http://www.amazon.com/Developers-SharePoint-Services-Platform-Programming/dp/1584505001. 
    (Developer's Guide to the Windows SharePoint Services v3 Platform (Charles River Media Programming - Todd Bleeker)
    This book is amazing and lays out a lot of the object model, but it's only as good as you practice.  I would build out some webparts and come up with some random projects on creating sites and doing other things programmatically.  Practice really helped me more than anything.  If you have questions feel free to ping me.

  • Editable field in ALV Object Model

    Hi Guys,
    I'm using method cl_salv_table=>factory to display an ALV (Object Model) in my report.
    I want to "open up" one field for user entries, in other words make one column of my table editable.
    I assumed to find the respective methods in class cl_salv_table, cl_salv_columns_table or cl_salv_display_settings, so far without getting anywhere.
    I know about the field-catalogue and the method set_ready_for_input in class CL_GUI_ALV_GRID - it's not working once you're in the object model.
    Any ideas how to do that?
    Thank you!
    With best regards,
    Andreas

    Hi Guys,
    I'm using method cl_salv_table=>factory to display an ALV (Object Model) in my report.
    I want to "open up" one field for user entries, in other words make one column of my table editable.
    I assumed to find the respective methods in class cl_salv_table, cl_salv_columns_table or cl_salv_display_settings, so far without getting anywhere.
    I know about the field-catalogue and the method set_ready_for_input in class CL_GUI_ALV_GRID - it's not working once you're in the object model.
    Any ideas how to do that?
    Thank you!
    With best regards,
    Andreas

Maybe you are looking for

  • IDOC to File multiple segments to one record

    Hello, I have an xi scenerio where I am going from IDOC to flat file.   I have an issue where a segment can occur multiple times and I want to take the last segment of that multiple occuring segment as my record to flatfile. for example        EDI_DC

  • Z-index of the stage scrollbar

    Hello, I have some trouble with the stage scrollbar I use an image that is 100% width & height and it overlap the scrollbar to resolve that I tryed to modify the z-index of the stage, but the stage overlap the image So my question is there a way to m

  • Parcel tracking number

    Dear friends, We have requirement where we need to type in the parcel tracking number in the delivery note. At the moment we are writing it manually on the delivery note. I have checked in VL02N and there is no field for this.We have thought of alter

  • Picture crop problem in CS3

    I have to admit that I am a newbie in CS3. Trying to crop a photo, but whenever I move the mouse over the picture, instead of the usual crop symbol, I have a hand. Can't figure out what has changed. I have never had this problem with Photoshop until

  • Cosuming webservice+ 500 error

    Hi all, I have a question. I am trying to consume SAP Web Services via proxy. Certain things I should make clear. 1. I am not using SAP NetWeaver Developer Studio to create the proxy. I used apache axis wsdl2java tool to create the proxy from the wsd