anandsunku Posted October 8, 2017 Share Posted October 8, 2017 i would like to access the clipboard content from the terminal command so that i can pass it as an argument. but when i tried to access the same it is literally printing the {clipboard:1}. Please help me on this regards, cd "{query}" echo {clipboard:1} git difftool --dir-diff "{clipboard:1}".."{clipboard:2}" output in the terminal {clipboard:1} Link to comment
vitor Posted October 8, 2017 Share Posted October 8, 2017 We can’t properly help you without access to your Workflow. Debugging can already be hard with access to the code, and you’re asking us to guess yours from a description. There are multiple places where you code or Workflow setup may be going wrong. Without looking at it we’re shooting in the dark, which is a waste of time for everyone involved (including you). Read the Reporting Problems with Workflows topic, as it gives a nice overview on how to build an effective report. Link to comment
anandsunku Posted October 8, 2017 Author Share Posted October 8, 2017 the article was useful. here is my link to the dropbox file https://www.dropbox.com/s/os0nuypdj69z1yw/File Actions - Getting Started.alfredworkflow?dl=0 in the attached one : the not working file action is "gitdiff" alfred version: 3.5[876] macos : 10.12.6 (16G29) Please let me know your comments: Link to comment
vitor Posted October 8, 2017 Share Posted October 8, 2017 Add and Argument and Variables Utility between the gitdiff File Action and the Terminal Command. Make it look like this. Then change the Terminal Command to look like this. Link to comment
anandsunku Posted October 8, 2017 Author Share Posted October 8, 2017 Wow it works ! super good!. So, is it a restriction to not use in terminal command? can you point me to the links where i can know more about the clipboard? 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