• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to use ScriptList class in Indesign CS5 SDK?

New Here ,
Jan 18, 2011 Jan 18, 2011

Copy link to clipboard

Copied

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(kScriptTagMgrBoss));
      err=Utils<IScriptUtils>()->SetScriptingTag(
myScriptList,scriptMgr->QueryDefaultEngine()->GetRequestContext(),myTagValue);
     return err;

with thanks,

Praba

TOPICS
SDK

Views

1.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 07, 2012 May 07, 2012

Copy link to clipboard

Copied

People who are still having problems with this should add the "AslSupport.lib" to the additional dependencies in the linker settings (Visual Studio).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 30, 2012 Sep 30, 2012

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines