Jump to content

Paste text in frontmost app output


Recommended Posts

I recently read this blog post about text expansion: here by our very own David Ferguson, about text expansion. I love this idea, and have used it thousands of times. But, I was thinking that there should be an output option to simply paste whatever text in the frontmost app. The only difference between this and the "copy to clipboard" output would be that you could use this for text expansion and wouldn't flood your clipboard.

 

Please implement this in the next update!

Link to comment
Share on other sites

I recently read this blog post about text expansion: here by our very own David Ferguson, about text expansion. I love this idea, and have used it thousands of times. But, I was thinking that there should be an output option to simply paste whatever text in the frontmost app. The only difference between this and the "copy to clipboard" output would be that you could use this for text expansion and wouldn't flood your clipboard.

 

Please implement this in the next update!

 

Something like this could be implemented now, without using the clipboard, by using AppleScript. 

 

tell application "System Events" to keystroke "This is a test"

 

The only downside to this is that its a little slower...

Link to comment
Share on other sites

Something like this could be implemented now, without using the clipboard, by using AppleScript. 

 

tell application "System Events" to keystroke "This is a test"

 

The only downside to this is that its a little slower...

 

Haha, I actually ended up trying that after I posted this, and came to the same conclusion.

Link to comment
Share on other sites

Haha, I actually ended up trying that after I posted this, and came to the same conclusion.

 

I didn't look at a speed comparison, and actually only tried a Run Script with the language set to osascript on this. As Andrew has mentioned several times, a compiled script using a Run NSAppleScript is the fastest option when running AppleScript in Alfred. You may want to test this out and see if it makes a difference.

Link to comment
Share on other sites

I will get back to you on that one.

 

**Update!**

 

I played around with it, and after the first run, it seems to be working pretty well. It does look a little funny when it appears because it looks like a ghost typer when your computer has to catch up to the text you typed.

Edited by Boarder24
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...