Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Automator - Copy to Clipboard & Insert Keystroke

Automator - Copy to Clipboard & Insert Keystroke
Thread Tools
Mac Enthusiast
Join Date: Mar 2008
Location: Northern Ireland
Status: Offline
Reply With Quote
Jan 16, 2010, 11:10 AM
I've set up a workflow that enables me paste some links into an input box in an application (Speed Download), and it works fine. Because some of the links need editing occasionally, I've inserted a "Ask for Confirmation" action - which also works fine. But when I hit yes to this confirmation, it takes me back to Speed Download where I need to manually hit the "return" key in order to start the download (or by clicking the option 'Add' - see image below). I can't find the right action in Automator, and my knowledge of Applescript is limited, in order to have this done automatically. Any ideas?

In short: how to insert the keystroke "return"?

My second question is: the process could be even more refined if it automatically copied the text to the clipboard whenever I run the workflow. I tried the action "Copy to Clipboard" but it throws up the error, despite the text being selected, "the action "Copy to Clipboard" was not supplied with the required data." Could this be because, even though the text is selected, I am not "in" Safari whenever it is trying to process? I'm in Automator hitting "Run" instead.

Here's the code so far, which all works fine. If there's any way it can be refined do let me know :-)

Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Privacy Policy
All times are GMT -4. The time now is 09:29 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,