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

extendscript Socket error on mac only

Participant ,
Feb 01, 2021 Feb 01, 2021

Hi!

I’m coding some servers for After Effects and I encountered a problem.

On windows os everything goes smooth but I’m having some trouble using the same code on a mac.

I narrowed down the issue to the socket listen() function

Here is a small part of a code that returns “true” on a PC but returns “false” on a Mac:

conn = new Socket();
alert (conn.listen(8080))

Any help would appreciated!

TOPICS
Scripting
593
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 Beginner ,
Jun 13, 2022 Jun 13, 2022

Having the same issue. Did you find out how to fix that?

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
Participant ,
Jun 13, 2022 Jun 13, 2022

Unfortuletly not...

Aperrently Mac OS does not support es3 ExtendScript fully anymore (socketwise)

So I moved to CEP panels coding - that can incorperate NodeJS and now it is possible to use sockets in more stable manner across OS platforms.

This is what made Render Brain possible- for network rendering in After Effects.

I hope this help

Cheers!

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 Beginner ,
Jun 14, 2022 Jun 14, 2022

Thanks a lot. I wanted a start-up script to listen for data from me. I guess it's impossible to write a start-up script in node?

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
Participant ,
Jun 14, 2022 Jun 14, 2022

If you create an extension you can load it automatically when app loads up (same as startup folder script) by using the:

<Event>applicationActivate</Event>

 in the extension xml file.

 

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 Beginner ,
Jun 14, 2022 Jun 14, 2022

But in this case, the extension must be installed before that. But thanks a lot for the hint! 

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
Participant ,
Jun 14, 2022 Jun 14, 2022
LATEST

Yes, The extension needs to be installed to achive that.

You're welcome!

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