Why applescript? Why not a scripting language that does all that applescript does and is also crossplatform? This is not meant to bash applescript, which is a fine scripting language. It's just that applescript won't run on Win32, *NIX, VAX... Other scripting languages will (python, perl and javascript even).
Why applescript? That's because mac applications can include "dictionaries" of commands that applescript can use. Try scripting photoshop and filemaker in python or some other language.
That's applescript's true power really. If it was just used as a standalone language without outside application support, it would be fairly weak.
> Why applescript? That's because mac applications can include "dictionaries" of commands that applescript can use.
Actually:
"The Open Scripting Architecture (OSA) is an API that provides a standard mechanism for creating scriptable applications and for writing scripting components to implement scripting languages. The AppleScript component implements AppleScript, the standard scripting language defined by Apple, but developers can also write scripting components for additional scripting languages."
One difference is that (I believe) OSA has been around longer than WHS, and less of an afterthought/add-on.
As far as I understand it OSA is like WHS + COM (or whatever it is these days). In fact you can even send AppleEvents over networks (if you enable it).
So, Python + win32 COM bindings is somewhat equivalent to Python + AppleEvent/OSA bindings.
I think OSA/AE is more integrated into the environment with most applications at least supporting the "Standard Suite" which includes opening & closing docu
Simulations are like miniskirts, they show a lot and hide the essentials.
-- Hubert Kirrman
Somewhat off topic but... (Score:3, Insightful)
that does all that applescript does and is
also crossplatform? This is not meant to bash
applescript, which is a fine scripting language.
It's just that applescript won't run on Win32,
*NIX, VAX
(python, perl and javascript even).
-d
Re:Somewhat off topic but... (Score:4, Informative)
That's applescript's true power really. If it was just used as a standalone language without outside application support, it would be fairly weak.
Re:Somewhat off topic but... (Score:5, Informative)
Actually:
"The Open Scripting Architecture (OSA) is an API that provides a standard mechanism for creating scriptable applications and for writing scripting components to implement scripting languages. The AppleScript component implements AppleScript, the standard scripting language defined by Apple, but developers can also write scripting components for additional scripting languages."
--
Re:Somewhat off topic but... (Score:2)
That reminds me WHS in Windoes. But the history shows that script programmers on Windows prefer Python and Tcl without WHS.
Re:Somewhat off topic but... (Score:2)
As far as I understand it OSA is like WHS + COM (or whatever it is these days). In fact you can even send AppleEvents over networks (if you enable it).
So, Python + win32 COM bindings is somewhat equivalent to Python + AppleEvent/OSA bindings.
I think OSA/AE is more integrated into the environment with most applications at least supporting the "Standard Suite" which includes opening & closing docu