• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Kindershell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kindershell


  • Subject: Re: Kindershell
  • From: Paul Skinner <email@hidden>
  • Date: Tue, 26 Nov 2002 22:32:32 -0500

On Tuesday, November 26, 2002, at 06:31 PM, John Delacour wrote:

At 2:27 pm -0500 26/11/02, Paul Skinner 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?


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.

Ahh. Before my time! I've just installed it in Jaguar and the answer is yes and no.

If I use a cocoa editor I can run a selection from the Do Script service, but the whole of my Services menu is missing if I use any other app.

Services are available to all cocoa apps.

It looks to me as though a simple 'run script [selection/clipboard]' would have the advantage over C&E.

As a simple example, if I assign a keystroke in Key Xing or a button/Function key in Eudora to the script

tell application "Eudora"
JJJJJJ get selected text
JJJJJJ run script result
end tell

and then select the line below and type the keystroke

display dialog "Hello".


I get two things that CompileAndExecute doesn't supply -- user interaction and ease of execution.

JD

Did I mention it'll run shell scripts?
Javascript?
That it comes with a helper app that will handle user interaction? That the user interaction limitation will be lifted in an upcoming OS release?
That it indicates WITHIN the selection where the error is if there's an error?

--begin 3 line script
set t to 1
set b to t+e
^
return b
--end 3 line script

***** Scripting Eror *****
The variable e is not defined.


As far as ease of execution, keystrokes are great. I live by launchbar. But I love contextual services.

I could run an equation, convert to all caps, encode tabs, decode tabs, Initial caps on words, Initial caps on sentences, lowercase, mac line endings, Unix line endings, windows file endings, rotate 13, smart quotes, straight quotes, Define in omni dictionary, run as applescript, execute as shell script, execute as javascript, reformat, remove line endings, remove space runs, remove quotes, shift left, shift right, sort ascending, sort descending, trim line endings trim line beginnings, trim lines, insert date, insert time, insert date and time,

ok, I'm tired. And that's just items and subitems 1-10 of 28 services I have installed. I didn't even make it to the cool ones in 'Instant links'. One click is all that any of this requires. Services. It's the wave of the future I tell ya.

Oh yeah, CompileAndExecute allows you to use your own AppleScripts to provide additional services.
--
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.
  • Follow-Ups:
    • Re: Kindershell
      • From: John Delacour <email@hidden>
References: 
 >Re: Kindershell (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Kindershell
  • Next by Date: Re: Detecting if text is styled
  • Previous by thread: Re: Kindershell
  • Next by thread: Re: Kindershell
  • Index(es):
    • Date
    • Thread