Home > Archive > AWK > January 2006 > OSA and awk (Mac)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Robert Peirce 2006-01-10, 3:58 am |
| Apparently, there are a number of scripting languages that have been
made substitutable for AppleScript. Two that come to mind are java and
python. However, that is just two more languages I do not know and
don't have the time to learn right now. What I do know is awk.
Does anybody know if there is a version of awk that can substitute for
AppleScript or if anybody is working on one?
--
Robert B. Peirce, Venetia, PA 724-941-6883
bob AT peirce-family.com [Mac]
rbp AT cooksonpeirce.com [Office]
| |
| Bob Harris 2006-01-10, 3:58 am |
| In article <bob-13BE7B.07515122122005@news.verizon.net>,
Robert Peirce <bob@peirce-family.com.invalid> wrote:
> Apparently, there are a number of scripting languages that have been
> made substitutable for AppleScript. Two that come to mind are java and
> python. However, that is just two more languages I do not know and
> don't have the time to learn right now. What I do know is awk.
>
> Does anybody know if there is a version of awk that can substitute for
> AppleScript or if anybody is working on one?
I do not know of any. But I suppose you could call osascript from
inside of awk to send and receive information via Applescript. So
you would have flow control handled by awk, and communications
handled by Applescript.
system("osascript ........")
cmd = "osascript ......"
cmd | while getline {
...
}
close(cmd)
I know that is not much, and it still means learning some
Applescript.
Bob Harris
| |
| Robert Peirce 2006-01-10, 3:58 am |
| In article <nospam.News.Bob-DA8078.08054422122005@news.verizon.net>,
Bob Harris <nospam.News.Bob@remove.Smith-Harris.us> wrote:
> In article <bob-13BE7B.07515122122005@news.verizon.net>,
> Robert Peirce <bob@peirce-family.com.invalid> wrote:
>
>
> I do not know of any. But I suppose you could call osascript from
> inside of awk to send and receive information via Applescript. So
> you would have flow control handled by awk, and communications
> handled by Applescript.
>
> system("osascript ........")
>
> cmd = "osascript ......"
> cmd | while getline {
> ...
> }
> close(cmd)
>
> I know that is not much, and it still means learning some
> Applescript.
I am trying to avoid learning a new language. I think if I was going to
take the time to learn AppleScript I would just use it. I basically
know how it works. I just don't know the details of the language, and I
don't have the time to learn it right now.
Animator is a really way around this except not all the scriptable
programs have actions available for them. It appears to be fairly easy
to create actions if you know AppleScript. I would like to be able to
do that in awk or C or some language I already know.
--
Robert B. Peirce, Venetia, PA 724-941-6883
bob AT peirce-family.com [Mac]
rbp AT cooksonpeirce.com [Office]
| |
| Steve Hix 2006-01-10, 3:58 am |
| In article <bob-13BE7B.07515122122005@news.verizon.net>,
Robert Peirce <bob@peirce-family.com.invalid> wrote:
> Apparently, there are a number of scripting languages that have been
> made substitutable for AppleScript. Two that come to mind are java and
> python.
Perhaps you mean javascript? Java isn't a scripting language (and
javascript has nothing to do with java).
> However, that is just two more languages I do not know and
> don't have the time to learn right now. What I do know is awk.
>
> Does anybody know if there is a version of awk that can substitute for
> AppleScript or if anybody is working on one?
|
|
|
|
|