• 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
System Event & TextEdit & Mac Os 10.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

System Event & TextEdit & Mac Os 10.2


  • Subject: System Event & TextEdit & Mac Os 10.2
  • From: Bernardo Hoehl <email@hidden>
  • Date: Fri, 17 Sep 2004 11:37:09 -0300

Hi List!


I have this script that I am using do build a Demo of my Applications, it simulates typing.

It works fine on Os 10.3.5, but in OS 10.2, I get an error that the pressKey event is not understood.

Could you help me?

Thanks!


Bernardo

Code:

tell application "TextEdit"
activate
end tell

my typeText("Eu posso interagir com seus aplicativos, como estou fazendo no TextEdit agora," & return & "por exemplo: digitando texto lentamente," & return & "ou mesmo...Digitar texto" & return)
on texto)
set the_item to 1
repeat with i from 1 to the count of texto
set theChar to character the_item of texto
tell application "System Events"
keystroke theChar
end tell
set the_item to the_item + 1
delay 0.2
end repeat
end typeText
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: System Event & TextEdit & Mac Os 10.2
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Adobe Illustrator Scripting
  • Next by Date: Pointers requested for first-time InDesign scripter
  • Previous by thread: Re: Adobe Illustrator Scripting
  • Next by thread: Re: System Event & TextEdit & Mac Os 10.2
  • Index(es):
    • Date
    • Thread