Re: extracting info from list returned by info for
Re: extracting info from list returned by info for
- Subject: Re: extracting info from list returned by info for
- From: "email@hidden" <email@hidden>
- Date: Sat, 3 Oct 2009 18:31:53 -0700
As I am still on Leopard, I didn't get any pains from using that
tell block. I also had forgotten about Standard Additions, there is
a lot of power hidden there :)
I'm not sure the "pain" in SL will be noticeable to most users, I the
tech note simply describes the added time involved when a Scripting
Addition command is sent to to an app which doesn't understand it, and
is resent to the 'current app' which invokes the Osax. I thought
something like that was already happening.
Now with Snow Leopard, if I understand well the technote, it may hurt.
>>>Yup. And, IMO at least, that's a good hurt :) Pain exists to let
you know that something needs fixing. Up until Snow Leopard,
AppleScript would try to hide this pain -- more, or less succesfully,
depending on the phase of the moon and other factors. That probably
seems user-friendly, but it is at least just as user-unfriendly :)
No, that is user friendly. Pain, in general, should be avoided.
AppleScript is a such a highlevel language that always has and
continues to allow users to write commands that may technically not be
perfect, but they work and they ease the entry learning curve. That
learning curve can often be a barrier to new users adopting the
technology and the fact that a simple natural command like this still
works is a good thing:
tell application "Finder" to set the name of myFile to date string of
(current date)
That writing applescript does not require the same level precision as
other C or shell scripting or other languages is also a good thing,
not a bad thing.
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