• 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
one step (tell block) at a time in AS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Fun with dates...
  • Next by Date: display dialog bug
  • Previous by thread: Re: Droplet to organize incoming files in connection with FMP
  • Next by thread: display dialog bug
  • Index(es):
    • Date
    • Thread