Ghost0 Posted July 28, 2020 Share Posted July 28, 2020 I work and manage a huge part of my eCom biz through Google Sheets. Would love to see this integrated to work with GSheets as well.. -GZero Link to comment
deanishe Posted July 28, 2020 Author Share Posted July 28, 2020 (edited) 2 hours ago, Ghost0 said: Would love to see this integrated to work with GSheets as well.. In technical terms, that's entirely unrelated to how this workflow works, so you're basically asking for a parallel reimplementation of much of what the workflow does. I'm not going to do that. Implementing the OAuth authorisation is already more complex than this entire workflow, and I'm also sick of dealing with Google and their ridiculous requirements for releasing applications that use their APIs. You might consider writing a script that exports your Google Sheets to Excel files and then pointing this workflow at them. Edited July 28, 2020 by deanishe Link to comment
Cassady Posted April 20, 2021 Share Posted April 20, 2021 I think you have just saved me weeks, heck, months of saved time, given how many times a day I no longer need to perform time-consuming searches for something I have now stored inside a dedicated Excel spreadsheet, that is a mere few keystrokes away... So, THANK YOU! 👍 Link to comment
AvatarThor Posted February 1, 2022 Share Posted February 1, 2022 Cassady, Did you get this workflow working on Alfred 4 or are you using Alfred 3? Link to comment
Cassady Posted March 16, 2022 Share Posted March 16, 2022 (edited) On 2/2/2022 at 1:23 AM, AvatarThor said: Cassady, Did you get this workflow working on Alfred 4 or are you using Alfred 3? It was working like a charm on Alfred 4 over the past several months – until today. Finally updated to macOS Monterey last night, and that seems to have broken it. Log throws out the following: Code 126: /Users/goldfish/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/100A1AA1-3884-4F6B-92C9-6B59DE8CD8E9: ./isyn: /usr/bin/python: bad interpreter: No such file or directory REALLY hope I can get this working again – this workflow is so powerful, and saves me so much time... [EDIT]: Ok. So, clearly I've been living under a rock. Did not realise that Python 2(.7?) was no longer part of macOS Monterey – and seemingly needs to replaced with Python 3 as the "new" default. And, assuming I understand things correctly, the above error log is simply saying that the /isyn workflow was trying to find usr/bin/python at its usual location – but now nothing is there, hence the error. So I presumably have to "simply" install Python 3 in the /usr/bin/python directory, and all should go back to working as before? Which means –– I need to spend time working through this thread! Yay me! Edited March 16, 2022 by Cassady joeynotjoe 1 Link to comment
vitor Posted March 16, 2022 Share Posted March 16, 2022 3 hours ago, Cassady said: So I presumably have to "simply" install Python 3 in the /usr/bin/python directory, and all should go back to working as before? No, that would not work because Python 2 and 3 are different. 3 hours ago, Cassady said: Which means –– I need to spend time working through this thread! Also no. The thread is for requests, there’s no point in reading it all. All you need is to follow the guide to reinstall Python 2 then install this updated version. Cassady 1 Link to comment
Cassady Posted March 17, 2022 Share Posted March 17, 2022 16 hours ago, vitor said: No, that would not work because Python 2 and 3 are different. Also no. The thread is for requests, there’s no point in reading it all. All you need is to follow the guide to reinstall Python 2 then install this updated version. Ah – thank you for clarifying difference between Python 2 and 3! And huge thanks for offering assistance – sadly, still running into issues. The support doc Homebrew installation of Python 2 failed, with the following message: BUILD FAILED (OS X 12.3 using python-build 20180424) Inspect or clean up the working tree at /var/folders/zn/jy0jnfks28qfrfgphswgrcn40000gn/T/python-build.20220317095201.71946 Results logged to /var/folders/zn/jy0jnfks28qfrfgphswgrcn40000gn/T/python-build.20220317095201.71946.log So, seemingly back to square 1. Will try and get clarity on what might be going wrong with the above. Link to comment
vitor Posted March 17, 2022 Share Posted March 17, 2022 7 hours ago, Cassady said: The support doc Homebrew installation of Python 2 failed, with the following message: First time I’m seeing that. I’d start by rebooting and trying again. Are you on Intel or Apple Silicon? Link to comment
Cassady Posted March 17, 2022 Share Posted March 17, 2022 4 hours ago, vitor said: First time I’m seeing that. I’d start by rebooting and trying again. Are you on Intel or Apple Silicon? Still rocking an Intel – but Silicon on the horizon in the next few weeks. Link to comment
phillipsoliveira Posted March 28, 2022 Share Posted March 28, 2022 Ever since I updated to OSX12.3 I sheet you not is not working. The following error comes up ERROR: I Sheet You Not[Run Script] Building workflow "test" in /Users/phillipsoliveira/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/net.deanishe.alfred-i-sheet-you-not ... env: python: No such file or directory Can anyone help me. I've tried uninstalling and reinstalling python but to no avail. Cheers Link to comment
Vero Posted March 28, 2022 Share Posted March 28, 2022 1 hour ago, phillipsoliveira said: I've tried uninstalling and reinstalling python but to no avail. Take a look at this thread for more details on both reinstalling Python and requesting tweaks to workflows Link to comment
Cassady Posted April 5, 2022 Share Posted April 5, 2022 On 3/28/2022 at 11:39 AM, Vero said: Take a look at this thread for more details on both reinstalling Python and requesting tweaks to workflows Hi Vero – appreciate the assistance. The post linked to above, so kindly put together, also links back to an Alfred help post, on reinstalling Python 2 – as found here. Unfortunately, following those instructions does not work, when trying the install through Terminal. It fires back (on my side, at least), the following error: python-build: use zlib from xcode sdk BUILD FAILED (OS X 12.3 using python-build 20180424) Inspect or clean up the working tree at /var/folders/zn/jy0jnfks28qfrfgphswgrcn40000gn/T/python-build.20220405173019.34079 Results logged to /var/folders/zn/jy0jnfks28qfrfgphswgrcn40000gn/T/python-build.20220405173019.34079.log Last 10 log lines: checking MACHDEP... darwin checking EXTRAPLATDIR... $(PLATMACDIRS) checking for --without-gcc... no checking for --with-icc... no checking for gcc... clang checking whether the C compiler works... no configure: error: in `/var/folders/zn/jy0jnfks28qfrfgphswgrcn40000gn/T/python-build.20220405173019.34079/Python-2.7.18': configure: error: C compiler cannot create executables See `config.log' for more details make: *** No targets specified and no makefile found. Stop. ln: /usr/local/bin/python: File exists So, kind of stuck back at square one, since presumably without a version of Python 2 that the various workflows depend on, nothing in the initial post, is going to work as it should.Oh, and apologies for dropping this all in here – but unfortunately did not seem to have a way of responding in the Alfred help blog-post. Link to comment
vitor Posted April 5, 2022 Share Posted April 5, 2022 5 hours ago, Cassady said: ln: /usr/local/bin/python: File exists Are you sure it isn’t already installed? This suggests it might. Anyway, to try again: restart your computer, then remove everything and follow the instructions to reinstall Python 2 again. Paste the Terminal output, preferably in the other thread. Also, are you on Intel or Apple Silicon? Link to comment
TomBenz Posted June 27, 2022 Share Posted June 27, 2022 This interesting workflow and I could run the demo successfully on Monterey 12.3. The documentation to create new one seems bit complex and I got fatal error in new workflow. Intend to try again. Is this workflow still maintained / updated? Perhaps simplified name such as "Alfred Sheet" or "Xls2Alfred" can be used? would love to find out how other users are using this workflow. I Sheet You Not Link to comment
giovanni Posted June 29, 2022 Share Posted June 29, 2022 I migrated this to Python 3. @Cassady @pankajsz give it a try and let me know if you see anything out of place. I have a question for @vitor: when a python script is an executable, it doesn't make sense to add the export PATH=/opt/homebrew/bin:/usr/local/bin:$PATH command to the script filter, correct? In that case, considering that the shebang in the executable is #!/usr/bin/python3, it will not work on brew-installed pythons? Is there a way to make it compatible, in other words an equivalent of export PATH=/opt/homebrew/bin:/usr/local/bin:$PATH for executables? Cassady 1 Link to comment
vitor Posted June 29, 2022 Share Posted June 29, 2022 4 minutes ago, giovanni said: I migrated this to Python 3. Added to the table. 4 minutes ago, giovanni said: I have a question for @vitor It depends on how you call it. If you do ./myscript.py or /some/path/to/script.py, then the file needs executable permissions and will use the interpreter in the shebang. If you instead python3 ./myscript.py or python3 /some/path/to/script.py, the file doesn’t need to be executable and will run using the interpreter you specified (python3 in the example), ignoring the shebang. This is where export PATH comes into play, as it affects where the shell will look for python3. giovanni 1 Link to comment
TomBenz Posted June 30, 2022 Share Posted June 30, 2022 20 hours ago, giovanni said: I migrated this to Python 3. @Cassady @pankajsz give it a try and let me know if you see anything out of place. I have a question for @vitor: when a python script is an executable, it doesn't make sense to add the export PATH=/opt/homebrew/bin:/usr/local/bin:$PATH command to the script filter, correct? In that case, considering that the shebang in the executable is #!/usr/bin/python3, it will not work on brew-installed pythons? Is there a way to make it compatible, in other words an equivalent of export PATH=/opt/homebrew/bin:/usr/local/bin:$PATH for executables? Seems fine and works same as earlier one. Thank you. I still believe we need better name and simplification of help or this workflow itself. I have used it so far for demo examples Link to comment
Cassady Posted July 8, 2022 Share Posted July 8, 2022 On 6/29/2022 at 9:38 PM, giovanni said: I migrated this to Python 3. @Cassady @pankajsz give it a try and let me know if you see anything out of place. Thank you SO much for doing this! I had given up, and rolled my own manual solution using the built-in list filter – but the original was always so much better. This is now working as it was, and I couldn't be happier. Thanks again! Link to comment
TomBenz Posted July 16, 2022 Share Posted July 16, 2022 On 7/8/2022 at 4:01 PM, Cassady said: Thank you SO much for doing this! I had given up, and rolled my own manual solution using the built-in list filter – but the original was always so much better. This is now working as it was, and I couldn't be happier. Thanks again! Works great. I have started using it more. More examples of format say for integer display etc would be helpful. Link to comment
TomBenz Posted July 23, 2022 Share Posted July 23, 2022 On 6/29/2022 at 11:38 PM, giovanni said: I migrated this to Python 3. @Cassady @pankajsz give it a try and let me know if you see anything out of place. I have a question for @vitor: when a python script is an executable, it doesn't make sense to add the export PATH=/opt/homebrew/bin:/usr/local/bin:$PATH command to the script filter, correct? In that case, considering that the shebang in the executable is #!/usr/bin/python3, it will not work on brew-installed pythons? Is there a way to make it compatible, in other words an equivalent of export PATH=/opt/homebrew/bin:/usr/local/bin:$PATH for executables? @giovanni I am using this more now and loving it. Thanks for your efforts on this. I can write values from any excel column as text. Is it possible to retrieve hyperlinks from an excel column. One way would be adding new column in excel with url link and retrieve it but wanted to find out if there is a better way. Link to comment
TomBenz Posted August 25, 2022 Share Posted August 25, 2022 On 6/30/2022 at 1:08 AM, giovanni said: I migrated this to Python 3. @Cassady @pankajsz give it a try and let me know if you see anything out of place. I have a question for @vitor: when a python script is an executable, it doesn't make sense to add the export PATH=/opt/homebrew/bin:/usr/local/bin:$PATH command to the script filter, correct? In that case, considering that the shebang in the executable is #!/usr/bin/python3, it will not work on brew-installed pythons? Is there a way to make it compatible, in other words an equivalent of export PATH=/opt/homebrew/bin:/usr/local/bin:$PATH for executables? @giovanni Are there max records that can be retrieved? In the debugger log, I see " [truncated]" towards the end. If I reduce the number of columns retrieved, data from more rows can be returned but incomplete. My dataset has 350 rows and it can retrieve up to 200. Beyond those rows, the workflow doesn't give any result or error message in the prompt or log. Link to comment
TomBenz Posted August 29, 2022 Share Posted August 29, 2022 On 8/25/2022 at 9:19 PM, pankajsz said: @giovanni Are there max records that can be retrieved? In the debugger log, I see " [truncated]" towards the end. If I reduce the number of columns retrieved, data from more rows can be returned but incomplete. My dataset has 350 rows and it can retrieve up to 200. Beyond those rows, the workflow doesn't give any result or error message in the prompt or log. I found answer to this. If the Value_Col returns null value, then the record is skipped. In the environment variables, I changed value_col to 1 which always have a value instead of the earlier column that sometimes had blank values. In debugger log, I found false for such records and then used it to troubleshoot. In the sample demo there is a Liverpool example with 7500 records so I realised there is no max records limitation. This workflow is amazing but just takes time to understand and use! Link to comment
Cassady Posted December 6, 2022 Share Posted December 6, 2022 (edited) Anyone else have this workflow broken after updating to Ventura? Increasingly convinced I haven't ticked a "permissions setting" somewhere – but struggling to work all of that out on the new OS. So, figured I would check here first. Debugger shows the following: [16:16:45.897] Logging Started... [16:16:50.765] Student Number Lookup (New)[Script Filter] Queuing argument '(null)' [16:16:50.856] Student Number Lookup (New)[Script Filter] Script with argv '(null)' finished [16:16:50.862] ERROR: Student Number Lookup (New)[Script Filter] Code 1: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Edited December 6, 2022 by Cassady Link to comment
vitor Posted December 6, 2022 Share Posted December 6, 2022 @Cassady Open a terminal and do xcode-select --install. A macOS dialog will guide you through the rest. It’s something that you had but the Ventura update broke. Cassady 1 Link to comment
Cassady Posted December 7, 2022 Share Posted December 7, 2022 21 hours ago, vitor said: @Cassady Open a terminal and do xcode-select --install. A macOS dialog will guide you through the rest. It’s something that you had but the Ventura update broke. THANK YOU! All fixed and running! 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