Re: tell darwin
Re: tell darwin
- Subject: Re: tell darwin
- From: Philip Aker <email@hidden>
- Date: Sun, 05 May 2002 20:01:12 -0700
On Saturday, May 4, 2002, at 04:52 PM, Jon Pugh wrote:
tell darwin
...
...
...
end tell
I think it would have to be a shell name.
tell tcsh
...
...
...
end tell
Would be useful and moderately clean.
Yes, I think that would good as well. It's more direct then what
I was getting at it in my previous reply to Jeff Baumann:
Let me try to take it one step further. These are probably not
technically correct illustrations but:
-- AppleScript variables
set msg to "Kilroy was here!"
set really to "Really?"
tell darwin using zsh with arguments msg really
echo $1
echo $2
end tell
tell darwin using perl with arguments msg really
... -- whatever perl can do with 'msg' and 'really'
end tell
But what would happen when a compiled script made a "direct"
call to 'bash' (which was installed on the scripters machine but
not installed on her user's machine)? If it was the case that
all calls went through 'tell darwin' then could it conceivably
err more gracefully?
Many languages use this sort of structure for embedding other
languages in themselves. I know several that use an
applescript
...
end applescript
syntax to embed AppleScripts within their scripts. Allowing
AppleScript to do something like that could definitely be
useful.
Like put up an HTML page for a "dialog" and get the user's input
returned. Wild!
Philip Aker
http://www.aker.ca
_______________________________________________
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.