Using applescript with py

Posted on
Mon Jul 29, 2013 1:08 pm
gregjsmith offline
Posts: 946
Joined: Apr 01, 2003
Location: Rio Rancho, NM

Using applescript with py

Anyone know a way to embed and use py code within an applescirpt? With the apparent depreciation of Applescript in Indigo I'm trying to figure a way to added py functions without rewriting all my applescript code.

The only other way I can think of it is adding py code to action groups then using applescript to update variables and execute the action groups with applescript codes. This is kind of messy.

Posted on
Mon Jul 29, 2013 7:15 pm
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Using applescript with py

AppleScript isn't being deprecated - so any scripts you have now will continue to work.

Any new scripts you write, however, I would highly recommend that you write them in Python since we won't be updating AppleScript with any new functionality. I would also recommend that if you need to make changes to an AppleScript to take the opportunity to rewrite it in Python - but that's not a requirement of course.

I think the easiest way to call an Indigo Python script from AppleScript would be to do the action group execution.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 25 guests