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

extendscript Socket error on mac only

Explorer ,
Feb 01, 2021 Feb 01, 2021

Copy link to clipboard

Copied

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

Views

241

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

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!

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

Copy link to clipboard

Copied

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?

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

Copy link to clipboard

Copied

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.

 

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

LATEST

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

You're welcome!

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