• 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: Insert text and paste command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Insert text and paste command


  • Subject: Re: Insert text and paste command
  • From: Andrea -XFox- Govoni <email@hidden>
  • Date: Wed, 13 Apr 2005 17:09:12 +0200

Andrew Oliver wrote:

There's one alternative, though, which is somewhat preferable since it
doesn't involve the clipboard (you have no idea what valuable information
may have been on the clipboard before you destroyed it). You can use UI
scripting to blindly type any keys. If you don't specify an application the
current frontmost app gets them:

 set myText to "Supercalifragilisticexpialidocious"
 tell application "System Events"
   keystroke myText
 end tell

In the Script Editor window it works flawlessy, but If I try to execute the script from the Script Menu when I am in a TextEdit document, for example, it doesn't work.
It works only inside Script Editor.


--
Andrea "XFox" Govoni
ICQ UIN: 43488185
AIM/iChat: email@hidden
Yahoo! ID: xfox82
_______________________________________________
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: Insert text and paste command
      • From: deivy petrescu <email@hidden>
References: 
 >Re: Insert text and paste command (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Image Events
  • Next by Date: Re: Image Events
  • Previous by thread: Re: Insert text and paste command
  • Next by thread: Re: Insert text and paste command
  • Index(es):
    • Date
    • Thread