Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add es Proxy for calling ExtendScript #83

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

timhaywood
Copy link
Collaborator

This adds a new method for calling your ExtendScript functions, (tentatively) called es.

This uses a Proxy so you can call them as methods, rather than passing in the function name as a string. It also enables using VS Code's "Go to Definition" to go to the ExtendScript implementation of the function.

const res = await es.myFunc("test");

Under the hood it uses the existing evalTS function.

Think I added it in all the right spots, made it the default in the README rather than adding a third option, but whatever you think works best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant