Friday, June 23, 2017

#1 2005-10-12 03:06:14 pm

From: MalasaƱa, Madrid
Registered: 2002-11-20
Posts: 2014

How many kinds of applescripts does exist?

Well, not different kinds of applescripts, but different ways to execute and handle applescript code.

We can use compiled scripts. We can open these in any script editor and run them choosing the "Run" button/menu. We can also execute these from any script menu, such as Apple's Script Menu or the one provided by some applications: Entourage, BBEdit, etc.

As standalone applications (double-clickable applications, just as GraphicConverter or Dreamweaver), we can save our scripts as applets or droplets. Droplets are the same as applets, but they can accept and work with files/folders opened via drag & drop. They will respond to the "open" apple event.

These are the most common ways to run applescripts. But there are lots of variations. We can run uncompiled applescript code on-the-fly using the do script command provided by some applications, such as Smile or Tex-Edit Plus. We can also use embedded scripts in some applications or languages. For example, we can use applescript code within FileMaker's ScriptMaker scripts, use applescript code in shell scripts using the osascript command or use applescript as agent in a CGI script.

In newer OS X versions we have "packages" (the Cocoa look & feel), and the new formats ".scptd" (package containing various compiled scripts) and ".app" (Cocoa-style application package).



Board footer

Powered by FluxBB

[ Generated in 0.045 seconds, 11 queries executed ]

RSS (new topics) RSS (active topics)