one step (tell block) at a time in AS?
one step (tell block) at a time in AS?
- Subject: one step (tell block) at a time in AS?
- From: Jason Davies <email@hidden>
- Date: Sun, 19 Jun 2005 00:08:51 +0100
i'm using Applescript in conjunction with iListen (which allows keyboard strokes). One thing I keep
running into is that the script throws all the commands so fast that they end up not happening in
sequence. Eg
--Dvorak keyboard in use
try
typeKey 0 modifiers 256 resulting in "a"
end try
-- ie Select All
try
typeKey 34 modifiers 256 resulting in "c"
end try
-- Command C
tell application "DEVONthink"
activate
end tell
try
typeKey 37 modifiers 256 resulting in "n"
end try
-- Command n, which makes new window with clipboard
WHat's actually happening is that Devonthink is active by the time that the keyboard commands are
triggered.
This is just an example. I have a suspicion that there is a way of wrapping this sort of thing together so
that it only proceeds on completion of steps. Can someone point me in the right direction? many thanks.
_______________________________________________
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