Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Apple Scripting Help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Kokopelli" data-source="post: 206979"><p>Well it was close. There are two problems. The first is that a repeat needs a type and a conditional. That is easily solved.</p><p></p><p>[code]</p><p>tell application "System Events"</p><p> </p><p> repeat while true</p><p> delay 60</p><p> click</p><p> end repeat</p><p> </p><p>end tell</p><p>[/code]</p><p></p><p>The second is that click simulates a click upon some UI element. Since no UI element is specified I am not sure if the OS will actually register the mouse as clicked.</p><p></p><p>P.S. If you want to confirm the loop just add a sialog inside the loop. that is what I did.</p><p></p><p>[code]</p><p> display dialog "Loop Ran" buttons {"OK"} default button 1</p><p>[/code]</p><p></p><p>p.p.s might want to run it from script editor or change it to a for loop. Not sure how you would kill an applescript running in an infinite loop.</p></blockquote><p></p>
[QUOTE="Kokopelli, post: 206979"] Well it was close. There are two problems. The first is that a repeat needs a type and a conditional. That is easily solved. [code] tell application "System Events" repeat while true delay 60 click end repeat end tell [/code] The second is that click simulates a click upon some UI element. Since no UI element is specified I am not sure if the OS will actually register the mouse as clicked. P.S. If you want to confirm the loop just add a sialog inside the loop. that is what I did. [code] display dialog "Loop Ran" buttons {"OK"} default button 1 [/code] p.p.s might want to run it from script editor or change it to a for loop. Not sure how you would kill an applescript running in an infinite loop. [/QUOTE]
Verification
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Apple Scripting Help
Top