Anyone know a ghost program that automaticall

May 16, 2011 at 18:24:48
Specs: Macintosh
Like you tell your computer to type something at a certain time. Anyone know how to do that? Sort of like being a bot. Anyone know a program FOR MACS?

See More: Anyone know a ghost program that automaticall

Report •

#1
May 25, 2011 at 13:57:57
Applescript built into OS X can accomplish this function, along with iCAL.

For example:

In AppleScript Editor, you can setup a script. Paste in the following:


tell application "TextEdit" -- Rename this to the application you want the text to type into.
activate
end tell
tell application "System Events"
keystroke "place your text here" --Edit this to what you want to type out
keystroke return
end tell

Save this somewhere as TextType.scpt

Next, go to iCal, and create a date and time you want this to run. In the New Event, you can set the ALARM to run a script. It will ask you to browse for the script you just created.
You can then use iCal to repeat that event every day, minute, hour...


Setting Up System Preferences

In order for the "System Events" application to use the key code or keystroke commands, you have to enable Mac OS X's accessibility frameworks. To do this, click on the "Universal Access" pane in "System Preferences". At the bottom of the pane is a checkbox setting called "Enable access for assistive devices". Click on the checkbox so the setting is enabled. Close out of System Preferences.


I would need to know the application and where you wanted the text to go in order to be more specific.


Report •
Related Solutions


Ask Question