I need to hold option down and tab 13 times. How can I best accomplish this using AS. I have tried key down option and keystroke tab however it starts to just tab after two of the option + tabs. Any help would be greatly appreciated.
What exactly are you trying to do? Or a better question may be, why are you trying to do that?
Jim Neumann
BLUEFROG
With a little digging I found this post to be very helpful with UI Clicking instead of 13 tabs :lol: hahaha :lol:
http://macscripter.net/viewtopic.php?id=15651
as well as this posting on auto log in
http://macscripter.net/viewtopic.php?id=12703
Thanks For the response tho
option tab 13 times is easy.
set theApp to "Pages"
tell application theApp
activate
tell document 1
end tell
end tell
tell application "System Events" to tell process theApp
repeat 13 times
keystroke tab using {option down}
end repeat
end tell
Set the application’s name and the target object to fit your needs.
Yvan KOENIG (from FRANCE jeudi 9 avril 2009 11:23:59)
I know Yvan that you are in Tiger, so i dont know if this feature is available to you. But in Leopard, System Preferences>>Universal Access>>Mouse
there is a checkbox which gives the option to press “option” key 5 times to toggle on and off the mouse keys. I can’t emulate the option key 5 times.
tell application "System Events"
repeat 5 times
keystroke option
end repeat
end tell
As far as I know, there is no way to keystroke the option key without an other key.
Tools are available to move the cursor.
From time to time I insert calls to “Extra Suites” to do that.
Yvan KOENIG (from FRANCE lundi 13 avril 2009 11:54:15)
(You edited your post and so now I have edited it :))I cannot afford to switch focus to some other app. I wanted to press option keys quick and fast. So UI scripting or using mouse is out of question. Anyway, thanks for the reply.