 |
 |
apple script question
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Nov 2007
Status:
Offline
|
|
anyone know how to make apple script listen for mouse events and simulate key strokes?
thanks
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status:
Offline
|
|
Try this:
<http://prefabsoftware.com/uibrowser/>
|
|
|
| |
|
|
|
 |
|
 |
|
Baninated
Join Date: Oct 2002
Location: In yer threads
Status:
Offline
|
|
Originally Posted by jinxjinx
anyone know how to make apple script listen for mouse events and simulate key strokes?
thanks
You mean how it used to have a record feature?
IMHO Applescript is being slowly moved out in favor of Automator. And now Automator has this "record" feature in 10.5
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status:
Offline
|
|
Where do you get the idea that AppleScript is on the way out? AppleScript and Automater do different things: AppleScript is a full scripting language that just got a number of important and significant updates in 10.5, Automator is a linear system that can use AppleScript and other modules to glue together a non-forking workflow.
If you just need to do a simple process, use Automator. If you need something with any logic at all in it, use AppleScript.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status:
Offline
|
|
Leopard is a big release for AppleScript! Check out www.apple.com/AppleScript for details. It is the native scripting language of Mac OS X and will continue to be advanced and improved. Thanks, Sal
|
|
|
| |
|
|
|
 |
|
 |
|
Baninated
Join Date: Oct 2002
Location: In yer threads
Status:
Offline
|
|
Well color me wrong. Record now does work in the Finder.
I apologize.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2003
Location: The back of the room
Status:
Offline
|
|
That reminds me, under 10.5 I seem to no longer be able to specify text item delimiters without having '.' (dot) be one of them. 
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status:
Offline
|
|
This works fine for me in 10.5.1:
set this_string to "Sal Sue Bob Carl"
set AppleScript's text item delimiters to " "
set these_names to every text item of this_string
set AppleScript's text item delimiters to ""
these_names
--> returns: {"Sal", "Sue", "Bob", "Carl"}
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|