How to use ScriptList class in Indesign CS5 SDK?

Hi,
Can anyone help to this concern??...
I couldn't use ScriptList class in CS5 SDK, as we use in Indesign CS4. It throws the following error when I build my plug-in.
Error     1    error LNK2001: unresolved external symbol "__declspec(dllimport)  struct adobe::version_1::new_delete_t const  adobe::version_1::local_new_delete_g"  (__imp_?local_new_delete_g@version_1@adobe@@3Unew_delete_t@12@B)
Here follows the Code I used to apply script label to a pageItem.
    ErrorCode err=kFailure;
     InterfacePtr<IScript> iScript(argPageItemUIDRef, UseDefaultIID());
     ScriptList myScriptList;     // including this class throws the above error.
     myScriptList.push_back(iScript);
     IScriptLabel::ScriptLabelValue myTagValue(argLabel);
     InterfacePtr<IScriptManager>scriptMgr(Utils<IScriptUtils>()->QueryScriptManager(kScriptTa gMgrBoss));
      err=Utils<IScriptUtils>()->SetScriptingTag(myScriptList,scriptMgr->QueryDefaultEngine()->GetRequestContext(),myTagValue);
     return err;
with thanks,
Praba

2i_Geert wrote:
People who are still having problems with this should add the "AslSupport.lib" to the additional dependencies in the linker settings (Visual Studio).
Thanks, it helped me

Similar Messages

  • How to use SDKODBCWrapper class in indesign cs3

    Hi,
         I am designing a plugin to interact with the database. I can see Adobe has given sdkODBCWrapper class. How  can i consume this class  to implement the database to my plugin. Can anyone please help with complete code snippet.
    Thanks
    saravanan,

    2i_Geert wrote:
    People who are still having problems with this should add the "AslSupport.lib" to the additional dependencies in the linker settings (Visual Studio).
    Thanks, it helped me

  • How do I open files in InDesign CS5.5 CS5?

    How do I open files in InDesign CS5.5 CS5?

    Hi, are you trying to open up a CS5.5 document in CS5? If so you need to export the docment while in InDesign CS5.5 to the IDML format.
    Please refer to this document: http://help.adobe.com/en_US/indesign/cs/using/WSa285fff53dea4f8617383751001ea8cb3f-6d52a.h tml#WSa285fff53dea4f8617383751001ea8cb3f-6d4da

  • How to get all images in indesign CS5 with javascript?

    Hi,everybody,
    How to get all images in indesign CS5 with javascript?I want to delete them.
    Anyone can give me some example codes?
    Thanks,
    Bridge

    Hey!
    This will remove all images from your InDesign document:
    var myLinks = app.activeDocument.links.everyItem().parent;
    for(var i = 0; i < myLinks.length; i++)
        myLinks[i].remove();
    Hope that helps.
    tomaxxi
    http://indisnip.wordpress.com/
    http://inditip.wordpress.com/

  • How to use TableSorter class with DefaultTableModel

    Hi Friends
    Please tell me how to use TableSorter Class which is in the Java. Tutorials with DefaultTableModel.
    i saw in a thread there it was given that we have to pass the DefaultTableModel to the TableSorter Class.
    I tried to use like that. But i am getting Error Like Exception occurred during event dispatching:
    I am posting the part of Code where i use the DefaultTableModel
         private void displayavailablity(String selectedAuthor)
                   try
                        Vector columnNames = new Vector();
                        Vector data1 = new Vector();
                        String bname,bauthor,bcategory,bref1,bavail,bid;
                        int bref,mid,num;
                        rs = st.executeQuery("SELECT BId,BName,BAuthorName,BAuthorandPublisher,BCat FROM Books where BAuthorandPublisher='" +selectedAuthor+"'");     
                        ResultSetMetaData md= rs.getMetaData();
                        int columns =md.getColumnCount();
                        String booktblheading[]={"NUMBER","BOOK NAME","AUTHOR","CODE","CATEGORY"};
                        for(int i=1; i<= booktblheading.length;i++)
                             columnNames.addElement(booktblheading[i-1]);
                        while(rs.next())
                             Vector row = new Vector(columns);
                             for(int i=1;i<=columns;i++)
                                  row.addElement(rs.getObject(i));
                             data1.addElement(row);
                             //System.out.println("data is:"+data);
                        ((DefaultTableModel)table.getModel()).setDataVector(data1,columnNames);
                        TableSorter sorter = new TableSorter((DefaultTableModel)table.getModel());
                        rs.close();
                   catch(SQLException ex)
                        System.out.println("ERROR IS HERE");
                        ex.printStackTrace();
         }Please help me on this issue Otherwise Please give me some Sample coding to implement this sorting. with DefaultTableModel
    Thank you for your service
    Cheers
    Jofin

    I don't know about any TableSorter class, but I suppose you mean javax.swing.table.TableRowSorter.
    The TableRowSorter is to be attached to the JTable, not to the data model. Here's a cut'n'paste from the last time I used it:
    RowSorter<TableModel> sorter = new TableRowSorter<TableModel>(tableModel);
    myTable.setRowSorter(sorter);
    And heres from the JDK1.6 documentation:
    TableModel myModel = createMyTableModel();
    JTable table = new JTable(myModel);
    table.setRowSorter(new TableRowSorter(myModel));
    Check out http://java.sun.com/javase/6/docs/api/javax/swing/table/TableRowSorter.html. I find it to be good documentation.

  • How to use multiple classes for each form

    Hi,
    I have created two forms using screen painter and now i want to use different classes for these two forms .
    I have declared the Sbo Connection in main class i.e. Set Application ,Connection Context() but while connecting to other classes
    for executing the code for that form SAP is not connected to that class.How to use multiple classes functionality i don't able to
    do that.Please provide some sample codes for that as it will be more helpful for me to understand.
    Thanks & Regards,
    Amit

    Hi Amit,
    In fact, its more advisable to use separate classes for every form that you use.  Have one common class, say, for eg., clsMain.cs which has all the connection and connectivity to other classes, wherein, the menu event and item event of this main class, will just be calling the menu / item event of other classes.
    The individual functionality of the child classes will be called from the item / menu event of the respective classes.
    Item event in clsMain.cs will be as below.
    private void oApplication_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
                SAPbouiCOM.Form oForm;
                BubbleEvent = true;
                try
                    if ((pVal.FormTypeEx == "My_Form1Type") && (pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD))
                        oForm = oApplication.Forms.GetForm("My_FormType", pVal.FormTypeCount);
                        NameSpace.Repots.ClsForm1.ClsForm1_ItemEvent(oApplication, oCompany, oForm, ref pVal, ref BubbleEvent);
                    if ((pVal.FormTypeEx == "My_Form2Type") && (pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD))
                        oForm = oApplication.Forms.GetForm("My_FormType", pVal.FormTypeCount);
                        NameSpace.Repots.ClsForm1.ClsForm2_ItemEvent(oApplication, oCompany, oForm, ref pVal, ref BubbleEvent);
    Now, in the individual classes, you can have their respective item events, which will be called from the main class, and the respective functionalities will occur.
    Hope this helps.
    Regards,
    Satish.

  • How to use ArraySequence class???

    Hi ,
    I'm a beginner in programing with java.. I found some troubles with it
    the trouble is HOW TO USE ArraySequence class,
    I need to read a word from the user and broken it down and store each letter in a rank of the ArraySequence,,
    I found an example that breaks a string into words ,,But I never found
    examples that fill an ArraySequence with a built-in types like int or double or char
    Can anybody please help me??!!!!
    some functions of ArraySequence take as parameter OR return (position ) class can you please tell me what does this class do??
    SORRY FOR MY LANGUAGE ,,I'M NOT NATIVE SPEAKER

    There is no ArraySequence class in the API.

  • How to use the class CL_CTMENU with the method DISABLE_FUNCTIONS

    Hi Friends,
    How to de-activate some functions in the Menu bar?
    Eg: - Sales document
                 Create
                 Change
                 Display
    I want to de-activate "Change"
    In other words: - How to use the class CL_CTMENU with the method DISABLE_FUNCTIONS in my program.
    Regards,
    Hari
    Edited by: Bhatlapenumarthy Hari Krishna on Jun 9, 2008 5:22 PM

    Krishna,
    It is not possible to deactivate the CHANGE option in themenu bar using the method disable_functions of cass CL_CTMENU. This method allows you to deactivate only the function codes of the CONTEXT MENU, which is available only when u press the left mouse button.
    U can use the SET PF-STATUS 'XXX' EXCLUDING fcodes option to disable the CHANGE.
    *****Reward points if useful
    Regards,
    Kiran Bobbala

  • How to use StreamTokenizer class ?

    i want to use StreamTokenizer class in my program so that when i read from a file i want to make tokens of words present in the file, but i dont know how to use this class in my program, as i didnt find any example which shows how to use StreamTokenizer class. Can nebody knows how to use it in a program ?

    Hi,
    here's some sample code of how to use the StreamTokenizer.
    in = new StreamTokenizer(
    new BufferedReader(
    new FileReader(fname)));
    You can iterate through the file with:
    while(in.nextToken() != StreamTokenizer.TT_EOF)
    when you call nextToken() ttype is filled with the type of token, you can't test ttype for what kind of token,
    test for word:
    if (in.ttype == StreamTokenizer.TT_WORD)
    test for word:
    if (in.ttype == StreamTokenizer.TT_WORD)
    I think you can grasp the rest in javadoc

  • How to use assistance class in WD4A?

    Hi SDN,
    Can you please tell me How to use assistance class in WD4A?
    Regards,
    Rahul

    Create a class that inherits the class cl_wd_component_assistance. By default, it will have the method if_wd_component_assistance~get_text, which is used to retrieve text elements defined in the class. You can also add any other methods to it, like accessing your data etc.
    In your wd4a component, in the main component overview screen, there will be a tetxfield for assistance class. define your class name there. You do not have to instantiate it separately. You can access the class methods using the object wd_assist, which will be created globally in your component.
    Regards
    Nithya

  • Can u  tell me any of you how to use Date class

    Can u tell me any of you how to use Date class. Please send me the source code.

    People won't send you the source code.
    Ask specific questions. You are very vague.
    Tell me how to build.

  • Boost::Regex dylib in Adobe InDesign CS5 SDK

    Dear all,
         I am doing my plugin for InDesign that uses regular expression. So I have done the plugin and its running fine in Windows. To get it run successfully I had included the path "D:\AdobeIndesignSDKCS5\external\asl\boost_libraries\bin.v2\libs\regex\build\msvc-9.0\relea se\architecture-x86\threading-multi\boost_regex.lib" in Additional Dependencies field that present in Linker option (Microsoft Visual Studio 2008).
         But I could not find any matching library for performing regular expression operation in MAC version of the Indesign CS5 SDK. So I could not able to link to appropriate library in my xcode project which leads to linking error.
         Any solutions for this?
    Regards,
    Prabas

    Dear Markus,
         Thanks a lot. Its working fine nw. I consider this as the timely great help. thanks again
    Regards,
    Prabas

  • InDesign CS5 SDK - Can plugins run on previous versions?

    Can I create Adobe InDesign Plugins with InDesign CS5 SDK that will also run on previous versions of InDesign such as CS4, CS3?
    Thanks
    -Ajay

    I totally disagree.
    As a plugin developer i am developing solutions for something adobe actually didn't include in their projects.
    There also isn't any compare between the amout all plugin developer have to spent to make their plugin compatible with 3 or more different Adobe-Versions and the amout adobe would had to spent to make their SDK backword-compatible.

  • How to reveal XML tags in InDesign CS5.5?

    I'm trying to tag a business catalog for an XML export. I've never done it before - but our sister company has done the same task with a similar catalog. I can view their catalog in InDesign CS5.5 for Windows over a VPN connection in order to see how they tagged their catalog.
    I'm doing this task on a Mac using InDesign CS4. The interfaces are not the same. The biggest problem is the sister company is in Czech and so is InDesign. I need to open the tags pane. On the Mac, its just "Window>>Tags." There is a "Window" (Okna) menu, but I'm not seeing a "Tags" choice. I have the structure open, but I want to see all the little colored tags. How do I reveal these on the Windows CS5.5 version?
    Thanks

    Wouldn't it be View > Structure > ... ?

  • How to uninstall and reinstall Adobe InDesign CS5?

    My Adobe InDesign CS5 stopped opening properly. Upon startup all the menu items were grayed out and unaccessible. Adobe Chat support advised me to uninstall and reinstall CS5.
    My other Adobe programs are working fine. (CS5 photoshop, illustrator, acrobat, etc.)
    MacBook Pro OS10.9.3
    Anyone know how to uninstall and reinstall CS5?
    Unfortunately Adobe chat service no longer supports this function on this older software.
    Thanks for your help.

    before you go to the trouble of uninstalling/reinstalling--try this (it's called resetting the preferences)
    OOPs--I forgot that I was in the indesign forum
    There is a quick and easy method for doing this using the keyboard: close and relaunch InDesign, and IMMEDIATELY hold down Ctrl + Alt + Shift (Windows) or Cmd + Ctrl + Opt + Shift (Mac), and respond in the affirmative to the dialog asking if you really want to replace the preferences. There are two downsides to this method, however. First, you must be extremely fast on the keyboard (if you don’t see the confirmation prompt, you were too slow), and second, anytime you replace the preferences you will lose most program customizations, and using the keyboard method leaves you with no backup to restore them when the problem turns out to be something else.
    My preferred method is to CLOSE INDESIGN and do a “manual” prefs replacement, which consists of finding and renaming the two files which make up the preference set: InDesign Defaults and InDesign SavedData. BOTH of these files should be replaced at the same time. You can delete them, but renaming or moving them will give you the opportunity to copy them back in the event that new prefs doesn’t cure your issue. When you restart ID, the program will look for these two files, and when they are not found, a new default set will be written.
    source: Troubleshooting 101: Replace, or "trash" your InDesign preferences

Maybe you are looking for

  • Windows 7 Pro giving a notification that "this windows isn't genuine" message.

    Hello - I was told to post this question here by Srimadhwa B I work at a museum and I just upgraded an exhibit the first one out of MANY!!! This is a rack mount system - AMX Controller controlling 9 PC's - 8 of the PC's drive uncompressed HD video to

  • Sending mail automatically on date

    Hi, I am new to JavaMail. I am having a doubt that is there any method in JAVA that automatically send the mail on a particular day. For e-x, if i set the sentDate as tomorrow, it has to send the mail on tomorrow itself, not the day, when i composed

  • Code to update a table using sqlldr

    Hi all, can anybody give the code to update a table using sqlldr with an example thank you

  • Brief Overview of NI Drivers

    I would like a general overview of the NI drivers (i.e. what is the name and extension of the main driver file, does it call functions from a different .dll file, where is the location of the driver files). Right now, I am seeing drivers in different

  • Issues accessing previous deleted private accounts data

    Hi, I recently switched to the Administer account on my mac, and deleted the previous account I had on it. It got deleted in two ways, first I tried saving it as a disk image, but it took FOREVER  ! Then I abborted the action and deleted it without c