cmatt3 Posted April 26, 2013 Share Posted April 26, 2013 I would like to make a workflow that 1. opens the calculator app (this I can do) 2. and then uses the calculator command [command T] to open the tape window. (I have no idea how to link the {command T] to part one.) Perhaps I need some kind of script?? Thanks. Link to comment
jdfwarrior Posted April 27, 2013 Share Posted April 27, 2013 I would like to make a workflow that 1. opens the calculator app (this I can do) 2. and then uses the calculator command [command T] to open the tape window. (I have no idea how to link the {command T] to part one.) Perhaps I need some kind of script?? Thanks. Voila! tell application "Calculator" activate end tell tell application "System Events" to tell process "Calculator" to click menu item "Show Paper Tape" of menu "Window" of menu bar 1 Link to comment
cmatt3 Posted April 29, 2013 Author Share Posted April 29, 2013 Alfred Guru: Seems so simple. Now I just need to read up on using scripts in workflows. I should be able to handle that. Thank you for your help. Link to comment
cmatt3 Posted April 29, 2013 Author Share Posted April 29, 2013 I am lost. I have a keyword balloon (ocalc) connected to a run script balloon with Afred Guru's script pasted in. When I type ocalc, nothing happens. also, I have no idea what all the escape buttons are for, or which language to use when I set up the script Link to comment
RodgerWW Posted April 29, 2013 Share Posted April 29, 2013 Just make a script filter. Give it a keyword, and set to NO argument. Then, paste the script above into the script area, and make sure the language is set to osascript. Then, when you type your keyword, as SOON as you finish typing it, the cal opens up. Link to comment
cmatt3 Posted April 29, 2013 Author Share Posted April 29, 2013 Got it. Did it. It works. Thank you. Link to comment
jdfwarrior Posted April 30, 2013 Share Posted April 30, 2013 Just make a script filter. Give it a keyword, and set to NO argument. Then, paste the script above into the script area, and make sure the language is set to osascript. Then, when you type your keyword, as SOON as you finish typing it, the cal opens up. This works but is actually incorrect. A script filter wouldnt be needed for this. A script filter is used in place of a keyword if you need to generate your own feedback options for Alfred. That isn't the case here so, a simple keyword would have been the better option instead of a script filter. Link to comment
RodgerWW Posted April 30, 2013 Share Posted April 30, 2013 This works but is actually incorrect. A script filter wouldnt be needed for this. A script filter is used in place of a keyword if you need to generate your own feedback options for Alfred. That isn't the case here so, a simple keyword would have been the better option instead of a script filter. LOL, what would be really cool is if the Alfred support site were...ahem...updated But seriously ... it IS nice that there are at least posts in the forum to correct some users' confusion on what each feature is for in Alfred. Link to comment
cmatt3 Posted April 30, 2013 Author Share Posted April 30, 2013 i do not understand what Alfred Guru is recommending. I do not mean to take advantage of your precious time, but could you be more specific as to what process you are recommending? I understand the key word concept, but what specific workflow does one use? RodgerWW's solution did work. Link to comment
RodgerWW Posted April 30, 2013 Share Posted April 30, 2013 What the Guru recommends, is, New workflow, essentials, keyword to script. The left side is the keyword, and on the right the script. So, for the script side, you would paste the code mentioned above, again, setting the language to osascript. This makes sense to me now from what the Guru stated. The only issue I have with it is that even when the keyword has the argument set to none, the script doesn't immediately run ... I have to press return to run it. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now