Re: Attachability
Re: Attachability
- Subject: Re: Attachability
- From: Bill Briggs <email@hidden>
- Date: Wed, 7 Feb 2001 10:10:25 -0300
At 1:52 AM -0800 07/02/01, bill fancher wrote:
on 2/6/01 9:00 AM, Cal at email@hidden wrote:
"- An attached script is a compiled script or script application that's
associated with a menu item in an application; the script is
executed when the
user chooses that command. This type of script usually resides in
a particular
place, such as a Scripts folder. Script attachment can be
implemented quickly
and, at its most basic level, doesn't require your application to be
scriptable."
This seems wrong to me. As Leonard said:
* Attachable - provided a way for the user to run scripts from
"user interface
elements" in the application. At the time, we were thinking more along the
lines of buttons/fields in a database or form processor, cells in a
spreadsheet or folders in the Finder. The idea of attaching to menus and
"Script" menus came later - most likely as a response to Jens'
Script Menu and
my OSA Menu.
According to the AppleScript Language Guide (p.25):
An attachable application is one that can be customized by attaching scripts
to specific objects in the application, such as buttons and menu items.
Again, according to ASLG (p.25):
...the Finder is an attachable application...
In the Finder, attached scripts (Folder Actions) are NOT triggered by menu
selection.
I agree with you Bill. In fact, Cal is contradicting himself here.
Page 8 of his own Scripter manual reads thus:
"Attachable: An attachable application supports the attaching or
embedding of a script to an object within the application. An
attachable application can associate a script with a button or with a
field in a form, for example. When you click the button or tab out of
the field, the script will run. In some attachable applications, a
script can be associated or embedded with an object or its data, such
as documents which hold different scripts."
This jives with what Leonard says, and makes much more sense to me.
Simply having a scripts menu wouldn't, in my mind, qualify as
attachable.
- web