Jump to content

Recommended Posts

One more vote to Python.

Despite the fact I'm a Indesign scripter long time ago, I think Python is a more powerful, cross platform language. Not JS for WINDOWS and AS for OSX, one ring to rule them all  ;)

Greetings from Spain!

Share this post


Link to post
Share on other sites

Javascript is the right choice, look around you guys.
Lua or python should be ok too, but what matters is to have a way to script exporters.

Share this post


Link to post
Share on other sites
On 8/30/2019 at 4:02 PM, RM f/g said:

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 ;)


macOS 10.14.6, Macbook Pro Retina 15" + Eizo 24"

Share this post


Link to post
Share on other sites
2 hours ago, thomaso said:

I wonder, since APub is able to open .IDML files, if it could also be possible to use scripts from InDesign in APub? ...

No. There is no possibility. Even if/when Serif adds scripting, the methods, api, etc., will be completely different...and that even if Serif extends JS like Adobe did.

Share this post


Link to post
Share on other sites

I understand the complexity of a 100% cross-platform scripting solution. This could be especially challenging when dealing with objets outside the application.

But you should _at least_ consider enabling AppleScript support on macOS where it comes almost for free with any Cocoa application.

No need to build anything, just accept AppleScript events so we coud at least do some UI scripting.

Share this post


Link to post
Share on other sites
Posted (edited)

I'm looking to get invested into Affinity software. I love the programs so far, but scripting is a must have for me.

Did we get an official decision from Serif if scripting is going to be supported in the future? If yes, any rough timelines?

Most of my commercial work is DTP process automation and pre/postprocessing with Photoshop Illustrator and InDesign.

 

I see many people posting preferences for scripting languages in this thread, so I'll give my view on it as well:

- Python has huge amount of libraries for most tasks, and in recent years became supported by an increasing amount of applications. Many people learn it as their first language in the academia, and it's steadily growing in popularity in the last 15 years. (source:  https://insights.stackoverflow.com/survey/2019 and https://pypl.github.io/PYPL.html)

- 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.

 

 

Edited by michalmph

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] as Shape;

for(let object:any in 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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.