• 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
Seeds of thought planted (gooey scripting?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Seeds of thought planted (gooey scripting?)
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: System Events - What are they? How do we use them?
  • Next by Date: Re: move theFile to thePath replacing no
  • Previous by thread: AppleScript QuickTime and 3GPP
  • Next by thread: Re: Seeds of thought planted (gooey scripting?)
  • Index(es):
    • Date
    • Thread