Hi all,
There are a number of sites on the web that can help you with
AppleScript. First take a look at:
http://www.apple.com/applescript/
You could Google AppleScript as well and see some of the other sites
out there. One of the best ways I've found to learn AppleScript sorts
of things is to look at other scripts. There are example scripts
within the AppleScript folder. Just open Script Editor, press cmd-o
to open an existing script, then look at what it does and how it
works. you can also look at the AppleScript dictionary for any given
app by choosing Open Dictionary from the File menu of Script Editor
and then browsing through its list.
I guess it helps in this case to have some programming background
too. Try not to get too wrapped up in this, don't reinvent the wheel
per say. You'd be surprised how many scripts are already out there
for you. Some may take some tweaking but you didn't have to create
the whole thing on your own.
One thing you may also like to do is to turn on the AppleScript menu.
Do this by opening The AppleScript folder in your Applications folder,
and then opening the AppleScript Utility. There is an option there
that will turn on the AppleScript menu which will show up in the
Status menu section.
Finally, thanks Greg for your excellent explanation below.
Later...
On 9 Feb 2008, at 15:54, Greg Kearney wrote:
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
Tim Kilburn
& Carter the Canine
Fort McMurray, AB Canada