Can't find JXA documentation - javascript-automation

where can I find JXA documentation with all available classes, functions and parameters? After so far found just random code samples and short tutorials.

The most official source of documentation is the release notes:
https://developer.apple.com/library/content/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/Articles/Introduction.html
The WWDC 2014 presentation is also an authoritative source of information:
https://developer.apple.com/videos/play/wwdc2014/306

You can find all the JXA details in the various SDEFs (in Script Editor, menu File > Open > Dictionary...), and in the Apple Release Notes for Yosemite and El Capitan.
But here is a complete list of JXA resources you may find helpful:
JXA Resources

Related

how to deploy a corrected library

I find a bug in a library (release 8) already used by many scripts.
I want these scripts to used the corrected library, but I can't change the library release number in each script.
I'd like replace the code in release 8 by the new code, with the same release number.
Is'it possible ?
Thanks

Library with identifier underscoreGS is missing

I was using underscoreGS for a long time, but I got "Library with identifier underscoreGS is missing (perhaps it was deleted, or you don't have read access?)" this error suddenly.
underscoreGS should be a public lib, I should be able to access it. I also try to delete and add this to the project again, I can re-add it, but the error still there.
This is my code
if (tmpDate.getTime() == tomorrow.getTime() && underscoreGS._indexOf(added, row[1], false) < 0){
Does anyone have the same problem? Or underscoreGS having a problem?
I can reproduce this behaviour. It looks like this behaviour is not limited to underscoreGS, but others like GSUnit and YouTubeApp result in the same error message.
I'd say it's possible that the owner of these libraries has changed the sharing settings and these libraries might no longer be public.
This has been reported in Issue Tracker:
Issues with underscoreGS, GSUnit libraries, and others?
Error replacing library
Update 2020-01-21:
One of these issues was updated with the following comment from Google:
This is not an issue with library import, this is a configuration problem by the library host/owner.
Please take this up with the third party developers of the affected libraries.
So apparently, this is not an issue with the library import process, but with the libraries themselves. Since these libraries are not officially supported by Google, anyone affected by this should take this up with the library developers.
Also, another developer shared backup scripts for these libraries in this comment, as mentioned in Gonzalo's answer.
Reference:
GAS Library Management (public)
Provisional Solution
From a comment on the same issue tracker mentioned by #Iamblichus
I don't know if the libraries can be brought back online. In the meantime, here are backups:
ObjApp source code:
https://script.google.com/d/1fCGHsA4zJ3ow0U_LFJclWTP8ctgDuMCZIrQ0bFCchSAIpnjNbWrW_Vre/edit?usp=drive_web
Script ID (to use as library):
1fCGHsA4zJ3ow0U_LFJclWTP8ctgDuMCZIrQ0bFCchSAIpnjNbWrW_Vre
GSUnit source code:
https://script.google.com/macros/d/1T4ao_R66gK5hK4dtKHT4p7kractojP2tYau9dOzcG7xJrYyl_gWiQ7a_/edit?usp=drive_web
Script ID (to use as library):
1T4ao_R66gK5hK4dtKHT4p7kractojP2tYau9dOzcG7xJrYyl_gWiQ7a_
underscoreGS source code:
https://script.google.com/d/1mBlMu5QzQSO0X3pGZHPBPfLYh5UuSRLETBb9x-EIyOzMPrd0SA-i7QdR/edit?usp=drive_web
Script ID (to use as library):
1mBlMu5QzQSO0X3pGZHPBPfLYh5UuSRLETBb9x-EIyOzMPrd0SA-i7QdR
Reference:
Issues with underscoreGS, GSUnit libraries, and others?
This is happening to me aswell just since yesterday for the ObjApp library but intermittently which makes me believe it is on Googles end

ReadTheDocs: Publishing Pre-Built HTML Pages to ReadTheDocs

I was trying to create documentation from python doc strings, and found pdoc. If you don't know, it creates html documentation from python doc strings. Since it generates .html files and not .rst, how do I publish those to ReadTheDocs or generate .rst files using pdoc?
Quick sidenote: I don't want to use sphinx since 1) the theme pdoc has is pretty cool and 2) I don't know how to generate documentation from docstrings using sphinx (all the tutorials I looked at didn't help).
Read the Docs released a beta feature some time ago that allows you to completely override the build process. This means that you can execute custom commands (e.g. pdoc) and output all the HTML to a particular directory (_readthedocs/html). Once the build is finished, Read the Docs will publish the content of that directory.
Check out the documentation at https://docs.readthedocs.io/en/stable/build-customization.html#override-the-build-process

Deprecated services list in webMethods

Can any one please provide me list of deprecates services in webMethods for upgrading from 7.x to 9.5.
Thanks,
Vaishnavi
Here's a list of things you can do:
1) Just import the package into webMethods 9.5 and run a few tests. If your code uses built-in services that aren't available anymore then you'll get an error message saying that the service is not found.
2) Open your services one by one and inspect the code, if your code makes a reference to a service that is no longer available then you'll see it. See screenshot below:
3) You can right click on the flow service in Package Navigator and select "Find References". See screenshot below:
In the Search result pane, anything that is bold and has a question mark means that the service is no longer found
Hope it helps!
Deprecated services after 6.1 version
http://idnxchange.com/forum/built-in-services/996-can-any-1-please-list-out-the-deprecated-services-after-webmethods-61-version.html
The ideal way to search for the deprecated services is to browse the individual SAG product release notes and read me files. You can easily download the files from SAG documentation.

downloading jackson.codehaus.org jar

I need to download a json parser so I go to the jackson.codehaus.org website. Instead of a convenient link to click and download the jar/jars, they have me going in circles. Does anyone know where the jars are -- exactly?
You can use this link instead :
DOWNLOAD v2.9.7
More General Link
Or goto http://mvnrepository.com/ and search for 'jackson-core' .
If you click "Download" at the right edge of the screen, scroll down to "Downloads, 2.x" and click "Core", you'll get the direct download.
Here you can find the jackson libraries (version 2.4.0). I got these project from a tutorial where you can see how to implement jackson and the code and libraries are available to download too:
http://www.ibm.com/developerworks/java/library/j-hangman-app/index.html
Next alternative link : http://www.java2s.com/Code/Jar/j/Downloadjacksonall199jar.htm
You can find here the "AllIn" jars with complete list of included files. But latest version here is 1.9.9. so...
Please try
/repositories/snapshots/com/fasterxml/jackson/core
Goto relevant directory
jackson-annotations/
jackson-core/
jackson-databind/
Then open maven-metadata.xml file. You can find the directory of latest version there. Please note that all jars renamed with release date.
I know this question is 4 years old, but the Jackson library is still very hard to find, and even though Sujith PS' answer here leads to the core jar, that was not enough for me.
For anyone who's looking for the jar files for Core, Databind and Annotations, I found them here:
http://mvnrepository.com/artifact/com.fasterxml.jackson.core
Specifically for version 2.7.4:
jackson-core-2.7.4.jar
jackson-databind-2.7.4.jar
jackson-annotations-2.7.4.jar