Two simple SnippetRunner questions which I cannot answer.

I've started with "JavaScripting" and to be honest I am still confused. I played a little bit with SnippetRunner example.So I have two questions.
1)Where does "sdkCodeSnippetRunnerObject" name come from?
In "snippetrunner\examplefiles\scripts\javascript\SnippetRunner.jsx" is this.
>// get the SDKCodeSnippetRunner object
var snippetRunner = app.sdkCodeSnippetRunnerObject;
I understand that in xxxx.fr there is defined "sdkCodeSnippetRunnerObject" object and is added to application object but when I tried to find this string in source codes "sdkCodeSnippetRunnerObject" simply didn't exist....
2)How can I run some snippetRunner method?
I wrote this.
>var snippet = snippetRunner.sdkCodeSnippets.item(53);
if (snippet.canRun() == true)
snippet.run();
but it didn't work. 53 should be PlaceFile snippet.
Thanks,
pyso

Inside the .fr the name is formatted as multiple words separated by spaces matching the notation for AppleScript. The capitalization is just a different formatting for JavaScript. For your object, see SnipRun.fr line 1319, below the kSnipRunObjectScriptElement ID.
There are also plenty details in the sdkdocs, e.g. scriptable-plugin.pdf
And Ole is right that these questions are better asked in the SDK forum.
Regards,
Dirk

Similar Messages

Maybe you are looking for

  • Excel Table with Data Connection Manual Text Entry Misaligned After Refresh

    Greetings! I have an Excel 2010 workbook that includes a table linked to my SharePoint 2013 site by a data connection. The SharePoint list feeds the table standard information that's managed on the SharePoint site, but I need the user of the Excel wo

  • Urgent CSS issue in Safari! LIVE site *****

    A site I recently wrapped up was working great in all browsers, and for some reason I hopped on Safari today and noticed it's not formatting right at all! I'm not sure where the issue is as it was hunkey dorey before, and am hoping somebody on here m

  • Coding for Non cumulative values

    Hi I have scenario like this. I have a objects called Work in progress(WIP) and cost of sales. ( COS) both are differentated by General Ledger. Like 400025, 4000026, 400027 are WIP.        500000,5000001, 50006 are COS. if working porgress is booked

  • AC010 Business Processes in Financial Accounting

    Do any one have "AC010 Business Processes in Financial Accounting Material" I am badly in need of it. please send to [email protected] regards Satish Message was edited by:         satish kumar

  • How do I play DVDs through Apple TV on my HD TV?

    I need some basic help please. I own a large collection of movie DVDs. These are conventional pre-recorded DVDs that I purchased in retail stores. I would like to play them on my flat screen HD TV. If I purchase Apple TV (don't currently own), what a