Kindershell WAS Re: lock the screen from the keyboard, win a prize
Kindershell WAS Re: lock the screen from the keyboard, win a prize
- Subject: Kindershell WAS Re: lock the screen from the keyboard, win a prize
- From: Paul Skinner <email@hidden>
- Date: Tue, 26 Nov 2002 14:27:46 -0500
On Tuesday, November 26, 2002, at 01:45 PM, I blathered:
On Tuesday, November 26, 2002, at 08:07 AM, John Delacour wrote:
At 9:40 pm -0500 25/11/02, Paul Skinner wrote:
Has anyone else lost the ability to run a text selection as script
using CompileAndExecute service since they upgraded to Jaguar?
Can you give an example to show what you mean?
JD
Sure. Ed Lai released a package called Kindershell. It was basically
'do shell script' before 'do shell script' was available. With it he
released a piece of code called CompileAndExecute. It was a service
that allowed any service aware app to run text as applescript
javascript or shell script.
I have to apologize for horribly misrepresenting kindershell. It is
NOT a do shell script equivalent! It is an applescript OSAX that
exposes several shell commands as applescript commands. It also allows
you to define your own. I have been so enamored by CompileAndexecute
that I completely missed this gem!
examples:
list files file ordering sorted by time -- ls -t
grep "Apple Computer" in the file list "test.c"
From the read me...
...It is easy to map from a structured data to a plain command line.
KinderShell is table driven so you can add your own UNIX command to the
osax. The current KinderShell osax is just a prototype. It includes a
few UNIX commands chosen mainly to illustrate the working of the osax...
...The KinderShell osax let you compose you own AppleScript command.
It comes with a few that is already generated. Now let us look at the
terminology dictionary to get a better understanding on how the osax
works...
...Summary of ways to use KinderShell osax
There are four levels of usage of the osax, depending on whether you
want your script to be like AppleScript or UNIX shell script.
1. You can do it with almost no AppleScript.
execute "cd /Users/edlai/Documents; ls -l"
2. You can do it with AppleScript parameters.
set c to "A"
execute "printf 'character %s is %X'" with data {c, ASCII number c}
3. You can do it more integration between shell script and AppleScript.
execute "echo -n $beta $alpha" with parameters {alpha:"world",
beta:"hello"}
4. You can do it just like AppleScript provided someone has put the
command is in the table.
list files with everything and details
--
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.