| |
| | |

Apple Phoon Forum

 Forgot password?
 Register
View: 1376|Reply: 10

Automator slowdown and errors

[Copy link]

Post time: 2014-02-09 14:33:33 |Show all posts
AppleScript
I have a workflow that mostly consists of click-here-click-there type of work. The loop makes it run for hours and hours at a time. The problem is that often after a few hours the process gets slower and slower, and sometimes fails to execute a step even though it has been doing the same thing without a problem before. If I just restart the workflow, the slowdown is still present, but if I quit Automator and reopen the same workflow, the speed is back up to normal and would run for another few hours before encountering an error. Remaking a particular step that causes error doesn't solve the problem. In fact, it's not always the same step that causes the error. Any advice would be greatly appreciated.
        iMac, Mac OS X (10.6.8)
Reply

Use magic Report

Post time: 2014-02-10 05:44:35 |Show all posts
If you're looking for a drag-and-drop solution that combines a browser and Automator-like tools, you might want to explore Fake, http://fakeapp.com/.
Reply

Use magic Report

Post time: 2014-02-10 04:42:02 |Show all posts
without more information I'm just shooting in the dark, but I'll hazard two suggestions for you to consider. First, if there's a particular element of a web page that you want to click, your best bet is using javascript by applescripting Safari. You can run javascript commands directly, which will be more stable and won't require GUI scripting at all. Second, if you have to GUI script use System Events.app, where you'll have much more control.
Honestly, you should be doing this in applescript. I've never heard of anyone GUI scripting using Automator, and the mere thought of trying to do that gives me heartburn. You'd have more luck bowling on a lane made of Jello.
Reply

Use magic Report

Post time: 2014-02-10 02:45:27 |Show all posts
Yeah, okay. Sorry can't help you. Too little information.
Reply

Use magic Report

Post time: 2014-02-10 01:10:31 |Show all posts
Um... so basically it has to click at certain points repeatedly on a web browser.
Reply

Use magic Report

Post time: 2014-02-09 23:42:51 |Show all posts
I see. I wish I can help you more, but it is kind of hard when you haven't really explained to me what you are trying to accomplish.
Reply

Use magic Report

Post time: 2014-02-09 21:50:43 |Show all posts
So the process has to run for days without a problem. I'm looking for great reliability. And, unfortunately mouse clicks are the only way to accomplish what I am trying to do. So basically I am trying to find a way to make lots of clicking more stable and reliable.
Reply

Use magic Report

Post time: 2014-02-09 20:24:53 |Show all posts
The other action you can use as part of your workflow is Dispense Items Incrementally, which works with Loop.


Reply

Use magic Report

Post time: 2014-02-09 19:00:55 |Show all posts
Wow! Why are you Pausing for so long? Are all the Pauses this long?
I am not sure what it is you are exactly trying to accomplish, but if it has to do with processing lots of files, i have found that the action "Wait for Finder Items" very good, as it will actually wait until the process is completed before moving onto the next action.
If you can explain a little bit more on what it is you are trying to accomplish, then that would be great.
Reply

Use magic Report

Post time: 2014-02-09 17:54:41 |Show all posts
Reply

Use magic Report

Post time: 2014-02-09 16:09:03 |Show all posts
Can you give me a screenshot of your workflow please.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Archive| Apple Phoon

2021-04-18 07:06 GMT-8 , Processed in 0.071179 sec., 27 queries .

Powered by Discuz! 7.2

Release 20121101, © 2001-2021

To Top