Re: AppleScript /python help - reading google maps traffic t
Posted: Tue Jan 29, 2013 5:07 pm
While there are certainly practical reasons for choosing a particular scripting/programming language, many times it's about how comfortable you are with one over the other. To address the practical side:
AppleScript
Python
I'm sure there are plenty of things I missed, but I think those are probably the biggest ones for me anyway.
AppleScript
- More "English-like" syntax (faster to learn for English speakers)
- Easier high level inter-application integration on Mac OS X than with other scripting languages.
- Can be used as an advanced condition for Indigo triggers and schedules (Python cannot).
- Mac OS X comes with a basic IDE/code editor already (AppleScript Editor).
Python
- Is (mostly) platform independent and thus usable with more than just Indigo.
- More flexible (can be used to access lower level hardware components and can be easily extended from libraries found online).
- Better multi-threading support (especially useful within Indigo plugins). A hung process is much less likely to hang your entire Indigo server or other Indigo plugins.
- Is the only language supported for creating Indigo plugins (as implied by Jay).
I'm sure there are plenty of things I missed, but I think those are probably the biggest ones for me anyway.