Jump to content

Launch Alfred using applescript


alfredo

Recommended Posts

You can already use selected text in OS X or your current clipboard content when starting your workflow with a hotkey, so have a look at these options in case they do what you're looking for without custom scripts :)

Link to comment
Share on other sites

  • 4 months later...

I'm the developer of PopClip, and I found this thread whilst was looking to make this very extension too. (I have had several requests for it from users.)

Whilst the AppleScript above would work, it is dependent on the user's hotkey settings, and it is a little clunky in operation. What I would need is the ability to use an AppleScript something like this:

tell application "Alfred"
    appear with text "Some example text"
end tell

The whole idea is to be able to activate Alfred via PopClip using the mouse only, without needing to press the hotkey. Here is an animated GIF example of how the PopClip integration would work (I built this one using the System Events applescript):
AlfredPopClipExample.gif

(FYI - More about PopClip Extensions)

Edited by Nick Moore
Link to comment
Share on other sites

I'm the developer of PopClip, and I found this thread whilst was looking to make this very extension too. (I have had several requests for it from users.)

Whilst the AppleScript above would work, it is dependent on the user's hotkey settings, and it is a little clunky in operation. What I would need is the ability to use an AppleScript something like this:

tell application "Alfred"
    appear with text "Some example text"
end tell

The whole idea is to be able to activate Alfred via PopClip using the mouse only, without needing to press the hotkey. Here is an animated GIF example of how the PopClip integration would work (I built this one using the System Events applescript):

AlfredPopClipExample.gif

(FYI - More about PopClip Extensions)

 

You mean something like..

tell application "Alfred 2" to search "Example Text"

? :)

Link to comment
Share on other sites

  • 3 weeks later...

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
×
×
  • Create New...