Re: on neophytes vs perfectionists (was Re: Tell Blocks Considered Harmful)
Re: on neophytes vs perfectionists (was Re: Tell Blocks Considered Harmful)
- Subject: Re: on neophytes vs perfectionists (was Re: Tell Blocks Considered Harmful)
- From: Ed Stockly <email@hidden>
- Date: Thu, 18 Dec 2008 14:38:21 -0800
It's simple only on the surface. Does anyone really expect a neophyte
to understand its intricacies? Especially since the documentation
only
scratches the surface? And the problems aren't just with the language
per se. Are we really expected to depend entirely on the dictionaries
without any supporting documentation? Just one example (of a myriad),
what does iTunes do with "make" from the standard suite? What doesn't
it do? ... I feel abandoned.
Make is the verb. By itself it does nothing. It needs an subject
(object) to do anything.
set resultObject to make new newTypeClass ¬
at atInsertionLoc ¬
with properties withPropertiesRecord
You need to tell it what to make and sometimes where to make it and
you can define the properties the new objects is made with.
Most applescript commands behave that way.
Here's a few plain and simple examples.
tell application "iTunes"
--
make new playlist
make new EQ preset
make new user playlist
end tell
Within the app you can send the make command to windows or playlists
or the library and create all sorts of itunes objects.
Look here for a ton of very well written AppleScript iTunes examples.
http://dougscripts.com/itunes/index.php
This is one case (of many) where, between the sample scripts freely
available, the depth of the scripting implementation and the
appleScript community knowlege base, tons of detailed documentation is
not needed. In addition, if you master scripting one single scriptable
application you can take that knowledge to script almost any
scriptable app.
HTH,
ES=
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden