Share this post

Link to post

Share on other sites

Can we, indesign users, still use applescript/javascript in the future

I wonder, since APub is able to open .IDML files, if it could also be possible to use scripts from InDesign in APub? I imagine it might work for specific layout objects and UI items, in particular those which have both apps in common. Or maybe after running a translator script to swap application specific vocabulary?

If yes, that might also mean, if this language(s) get supported by APub, then there would be available scripts from the beginning, and experienced scripters and users, too. Looks like a win-win-win situation

- Javascript is the original cross-platform language supported by the Adobe ExtendScript software. A lot of people using the Affinity software for UI design and web development most likely come with it as part of their skillset.

Personally, either is OK for me, with a heavy preference towards Python.

Share this post

Link to post

Share on other sites

I also vote for Javascript or Python. TypeScript is gaining terrain. NodeJS added TypeScript, Vue added Typescript. VSCode extensions are made with TypeScript. Ionic for mobile/desktop/web apps is using TypeScript.

I would love to have a statically typed language to control Affinity programs:

let circle:Shape = document.selection[0] asShape;

for(let object:anyin document.selection) {console.log( object );
}

But I agree with michalmph's about Python "having huge amount of libraries for most tasks".

But I read a comment here with a really nice idea. Regarding of the chosen language, building like a server, where we can send HTTP request (or connect to it via sockets/workers?), so we can use any language we want.

I would then, use the Dart client. Like the Discord Client API that there's a port in so many languages.