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

socket connection

Explorer ,
Oct 17, 2019 Oct 17, 2019

I need to send error notifiction to https server using indesign script. Is this possible via script.  if possible share the sameple code.

255
Translate
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
Community Expert ,
Oct 17, 2019 Oct 17, 2019
LATEST

There are no libraries about https protocol and we need to build ourselves.
However, We can use doScript method to invoke AppleScript with process. See below one liner.

alert(app.doScript( 'do shell script "/usr/bin/curl https://community.adobe.com/t5/InDesign/socket-connection/td-p/10675877"', ScriptLanguage.APPLESCRIPT_LANGUAGE));

  

Translate
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