Cocoa is the user interface system used by many new programs, You can have a Cocoa interface in a AppleScript, Perl, C, or any number of other programing languages.

AppleScript is the OS wide scripting language in the MacOS think of it sort of like the Mac version of JAWS scripting.

Here is a simple example:

tell application "Finder"
        set desktop_count to count of items in desktop
end tell
say desktop_count

What we are dong here is to tell the Finder to up into the variable desktop_count a number which corresponds to the number of items, files, directories, disks and so on that are on the desktop. Then we stop using the finder with the "end tell" command.

The variable is now set to a number. We can now use it to do math or display it in a dialog or, as in this case, have the Mac say it aloud with the line "say desktop_count"


Greg Kearney
535 S. Jackson St.
Casper, Wyoming 82601
307-224-4022
[EMAIL PROTECTED]

On Feb 9, 2008, at 8:07 AM, James Austin wrote:

I think there is something called coco dev center too but i don't know if that is different
On 9 Feb 2008, at 14:56, [EMAIL PROTECTED] wrote:

I certainly wooul love to as well. as I feel that apple scripting will be handy for me to use and to help others with product problems etc. if anyone can point us to resources or documentation or some form of training of some
kind that would be beneficial to us.

lew









Reply via email to