Seeds of thought planted (gooey scripting?)
Seeds of thought planted (gooey scripting?)
- Subject: Seeds of thought planted (gooey scripting?)
- From: Dave Stewart <email@hidden>
- Date: Fri, 25 Jul 2003 09:00:05 -0700
On Thursday, July 24, 2003, at 12:47 PM, Stephen Jonke offered things
like this:
>
tell application "System Events"
>
tell process "Terminal"
>
keystroke "y" & return
>
end tell
>
end tell
and this ...
>
tell application "System Events"
>
tell process "Terminal"
>
keystroke thePassword & return
>
set thePassword to null
>
end tell
>
end tell
Hey, this may be an answer to a long standing problem I've had that
I've been unable to solve. I need (eventually) to script Terminal to
interact with a software package it's telnetted into and maybe this GUI
scripting is the answer I'm looking for. (I've posted about this in the
dim and distant past, check the archives for "terminal scripting" for
details on my troubles).
Before I download it and spend time try things out, can anyone tell me
if it's possible to do anything like this?
{pseudo-script}
tell application "System Events"
tell process "Terminal"
keystroke F4 --anything like this?
end tell
end tell
{/pseudo-script}
I think if that's possible I can finally get rid of the old terminal
emulator that one person in the company is still using and get that
individual updated to the Terminal app that everyone else uses. He's
currently stuck using the old emulator (DataComet for those interested
types) for a script I've written to automate parts of his job. That
script sends keystrokes to the process at the other side, including
function keys (F3 and F4 are used quite a bit).
TIA for any thoughts/ideas/suggestions/answers.
Dave Stewart
Aqua-flo Supply (Goleta)
email@hidden
"si hoc legere scis nimium eruditiones habes."
(If you can read this, you're overeducated.)
_______________________________________________
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.