Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I currently have a simple workflow that gets the contents of the clipboard and creates a new text file from those contents on the desktop.

problem is, i have to run the workflow everytime i need my clipboard dumped in the text file

is there any way i could create a workflow/application/service using automator that runs in the background and dumps the contents of the clipboard into the text file everytime the contents of the clipboard change?

alternatively, is there any app that would accomplish the same?

share|improve this question

1 Answer 1

I recommend designing such a process in AppleScript. AppleScript is not capable of just sitting and detecting a clipboard change, but you can set a regular interval for it to check your clipboard. Using variables, you can deduce if the clipboard data changes over time and set an IF THEN statement to run the text file process each time a change is detected. As far as having this run in the background, you can make the AppleScript a login item through System Preferences.

Here is a good template for polling the clipboard for changes. And here is a good starting point for the AppleScript code to copy into a text file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.