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

File object #36

Closed
bryab opened this issue Aug 2, 2018 · 3 comments
Closed

File object #36

bryab opened this issue Aug 2, 2018 · 3 comments

Comments

@bryab
Copy link
Contributor

bryab commented Aug 2, 2018

Thanks for this library, it is making me not as sad to get back into writing some scripts for AE.

Do you know a way to get Typescript to understand the Extendscript File object -- essentially overriding the default Javascript File object?

For now I am just adding @ts-ignore before all references to the File object...

@pravdomil
Copy link
Collaborator

Please follow setup guide
https://github.com/pravdomil/Types-for-Adobe/blob/master/README.md#your-first-script-for-eg-adobe-illustrator
And then File will point to the extend script File.

@bryab
Copy link
Contributor Author

bryab commented Aug 3, 2018

Aha, thanks.

So my understanding is that your target here are single-file scripts. I'm trying to compile a large "library" of files that i use across all my scripts.

My current thought is to compile all those "library" files in a single .jsxinc file. Then #import that .jsxinc before executing my individual scripts.

Preferably we could use proper module imports but I don't think there's a way to get it to work in Extendscript...

@bryab bryab closed this as completed Aug 3, 2018
@pravdomil
Copy link
Collaborator

for javascript modules you will need webpack

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

No branches or pull requests

2 participants