• 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: Simulating pressing of Enter key / Continue button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simulating pressing of Enter key / Continue button


  • Subject: Re: Simulating pressing of Enter key / Continue button
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 16 Jan 2008 10:25:34 -0500

AppleScripting a GUI app seems like an awfully roundabout way to
automate ftp, but you can tell System Events to simulate a keypress -
you'll have look in its dictionary for the commands or wait for
someone else to supply them, though, since i'm AFmM. There's one that
takes a key code and one that takes the actual character...


On 1/16/08, Henry Sternberg <email@hidden> wrote:
> Hi Guys,
>
> I've got a simple script going which is sending commands to an FTP program.
> The problem is, the commands cause a GUI dialogue box to appear. All I want
> to do is for the script to then press the 'Continue' button (which is
> highlighted by default). Even something to simulate the enter key being
> pressed would do the trick. Is there a simple way of doing this? I've tried
> an 'AXPress' action but I'm not having much luck.
>
> Any help would be appreciated - I didn't know there was such a thing as
> Applescript before this morning, never use macs so I'm probably missing
> something fundamental.
>
> Cheers,
>
> Henry
>


--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Simulating pressing of Enter key / Continue button (From: "Henry Sternberg" <email@hidden>)

  • Prev by Date: Simulating pressing of Enter key / Continue button
  • Next by Date: Re: Database from AppleScript
  • Previous by thread: Simulating pressing of Enter key / Continue button
  • Next by thread: Get only the name of the file, instead of the whole path!
  • Index(es):
    • Date
    • Thread