Jump to content

juliosecco

Member
  • Content Count

    114
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by juliosecco

  1. I use and like Glosbe workflow a lot, but it has has suddenly stopped working the workflow outputs 'error contacting glosbe.com' here the debug: Starting debug for 'Glosbe Translation' [2019-02-27 11:10:41][ERROR: input.scriptfilter] Code 1: 11:10:41 translate.py:133 DEBUG script args : [u'eng', u'ita', u'c'] 11:10:41 translate.py:135 DEBUG docopt args : {u'--help': False, u'--langs': False, u'--openhelp': False, u'--text': False, u'<dest>': u'ita', u'<query>': u'c', u'<source>': u'eng'} 11:10:41 translate.py:60 DEBUG Calling http://glosbe.com/gapi_v0_1/translate with args : {u'dest': u'ita', u'phrase': u'c', u'from': u'eng', u'pretty': u'true', u'format': u'json'} 11:10:41 workflow.py:1894 DEBUG Cached data saved at : /Users/juliomacr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-glosbe/4f19be0f2b1109e6fcec4edfc976b244.cpickle 11:10:41 workflow.py:2243 ERROR object of type 'int' has no len() Traceback (most recent call last): File "/Users/juliomacr/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F9FF7FEC-7E02-4F79-8A95-EFE9A465638C/workflow/workflow.py", line 2236, in run func(self) File "translate.py", line 180, in main if not len(results): TypeError: object of type 'int' has no len() 11:10:41 workflow.py:2267 DEBUG Workflow finished in 0.270 seconds. [2019-02-27 11:10:41][WARNING: input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 64.)'. Row 2, Col 195: 'XML declaration allowed only at the start of the document' in XML: <?xml version="1.0" encoding="utf-8"?> <items><item valid="no"><title>Error contacting Glosbe.com</title><subtitle /><icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns</icon></item></items><?xml version="1.0" encoding="utf-8"?> <items><item valid="no"><title>Error in workflow 'net.deanishe.alfred-glosbe'</title><subtitle>object of type 'int' has no len()</subtitle><icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns</icon></item></items> [2019-02-27 11:10:42][ERROR: input.scriptfilter] Code 1: 11:10:41 translate.py:133 DEBUG script args : [u'eng', u'ita', u'chai'] 11:10:41 translate.py:135 DEBUG docopt args : {u'--help': False, u'--langs': False, u'--openhelp': False, u'--text': False, u'<dest>': u'ita', u'<query>': u'chai', u'<source>': u'eng'} 11:10:41 translate.py:60 DEBUG Calling http://glosbe.com/gapi_v0_1/translate with args : {u'dest': u'ita', u'phrase': u'chai', u'from': u'eng', u'pretty': u'true', u'format': u'json'} 11:10:41 workflow.py:1894 DEBUG Cached data saved at : /Users/juliomacr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-glosbe/61142e8582e6d754836e7b7c06eba7bd.cpickle 11:10:41 workflow.py:2243 ERROR object of type 'int' has no len() Traceback (most recent call last): File "/Users/juliomacr/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F9FF7FEC-7E02-4F79-8A95-EFE9A465638C/workflow/workflow.py", line 2236, in run func(self) File "translate.py", line 180, in main if not len(results): TypeError: object of type 'int' has no len() 11:10:41 workflow.py:2267 DEBUG Workflow finished in 0.307 seconds. [2019-02-27 11:10:43][ERROR: input.scriptfilter] Code 1: 11:10:42 translate.py:133 DEBUG script args : [u'eng', u'ita', u'chair'] 11:10:42 translate.py:135 DEBUG docopt args : {u'--help': False, u'--langs': False, u'--openhelp': False, u'--text': False, u'<dest>': u'ita', u'<query>': u'chair', u'<source>': u'eng'} 11:10:42 translate.py:60 DEBUG Calling http://glosbe.com/gapi_v0_1/translate with args : {u'dest': u'ita', u'phrase': u'chair', u'from': u'eng', u'pretty': u'true', u'format': u'json'} 11:10:43 workflow.py:1894 DEBUG Cached data saved at : /Users/juliomacr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-glosbe/315b3bffae742b7bebdf80c9dfcc2f75.cpickle 11:10:43 workflow.py:2243 ERROR object of type 'int' has no len() Traceback (most recent call last): File "/Users/juliomacr/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.F9FF7FEC-7E02-4F79-8A95-EFE9A465638C/workflow/workflow.py", line 2236, in run func(self) File "translate.py", line 180, in main if not len(results): TypeError: object of type 'int' has no len() 11:10:43 workflow.py:2267 DEBUG Workflow finished in 0.438 seconds.
  2. I use your glosbe workflow a lot, and like it very much, but it has suddenly stopped working... I have checked all the 'Mojave' suggestions, but anyway it was working in Mojave until some time ago.
  3. I love Recent Items. it allows you to open recent files and folders, and manage a list of favourites to list and open
  4. Hi, I have never used python , but I have arranged a little update to the fuzzylist.py script. at line 25 you can see a line like this: r['uid']=r['arg'] now you should insert two new lines before it: r['arg']=r['title'] r['subtitle']="" the first command will set the 'arg' (the value that will be pasted if you attach a 'Copy to clipboard' action to the Script filter) in the output json file with the same value of the 'title' the second command simply sets 'subtitle' to empty. so you don't see <null> with this update the list.csv file to drag into the workflow folder does not need anymore to be a three column text file but can be a single column file, with the single column value assigned both to the 'title', 'uid' and 'arg' values of the created json file. hope this helps you, Giulio
  5. well, using BBedit or another text editor thst accepts regular expressions, you could do a search replace this way: search string: ^([^\n]+)$ replace string: \1,,\1 (tested with BBedit and it works)
  6. well, in the case of workflows, they could contain just everything, but especially text and maybe images
  7. just for curiosity and trying to understand, could you try this? snapshot2
  8. No, I'm on 10.12.6, and your workflow works just fine for me so maybe Hig Sierra changed something
  9. this is working for me, using a run NSApplescript action in a workflow: on alfred_script(q) -- path to the desktop set theDesktop to POSIX path of (path to desktop as string) -- variables to form the name of the snapshot set {year:y, month:m, day:d} to current date set myDate to y as string & "-" & m as string & "-" & d as string set myTime to time string of (current date) -- command to take the snapshot set shellCommand to "/usr/sbin/screencapture " & theDesktop & "Screenshoot-" & myDate & "-" & myTime & ".png" do shell script shellCommand -- command to open the snapshot set shellCommand to "open " & theDesktop & "Screenshoot-" & myDate & "-" & myTime & ".png" do shell script shellCommand end alfred_script obviously you should use an alfred shortcut to start the workflow, instead of cmd+ctrl+shift+4
  10. yes, I confirm. if you add a new desktop, it is not automatically enbled the corrispondent shortcut, and the script relies on the shortcut so, if we even could find a way to count the desktops, we should anyway goto the preferences to add their shortcut, so nothing automagically working
  11. yes, unfortunately yes, this solution works for a fixed number of screens. and more if you add more desktops, i imagine you should also change the preferences to enable the shortcut to them anyway if you change the number of desktops, is also really easy to adjust the script. just keep in mind to start from keycode 18. (Ctrl 1), and go on (19 for Ctrl 2 and so on) yes, I admit is quite tricky
  12. Don't know if there is a simpler way to do this, but it seems I have found a way and it is working for me. let's say we have 'Desktop 1' on the first screen for personal use and ' 'Desktop 2' for development in the second screen we have 'Desktop 3' for personal use and ' 'Desktop 4' for development In System preferences -> keyboard -> shortcut -> Mission Control we can enable the various 'Go to desktop', using Ctrl and the desktop number now you can create a really simple workflow: add and input element, with keyword 'pers', decheck 'with space', select 'no argument'; link it to an NSApplescript object, with this code on alfred_script(q) tell application "System Events" to key code 18 using control down tell application "System Events" to key code 20 using control down end alfred_script this will switch both screens to personal use. add another two linked objects the same way, set the input keyword to 'dev', and on the linked NSApplescript object put this code: on alfred_script(q) tell application "System Events" to key code 19 using control down tell application "System Events" to key code 21 using control down end alfred_script this should switch both screens to development use. hope it works for you! Giulio
  13. I'm not a native english speaker, working a lot with list of keywords that describe audio files... This tool can be A LOT useful for me! Thank you!
  14. Hi, I'm using audioswitch http://www.packal.org/search/site/audioswitch
  15. works just fine... added activate to bring Safari in front, and it's exactly what I needed... thank you so much Vitor! Giulio
  16. Hi all, I used a lot the Send URL by Jonas Eriksen, but now that I have upgraded to Sierra (yes, I waited some time for...), ir stopped functioning, at least for my needs. My essential use of it was simply while navigating in Chrome, open at any time the current Chrome tab address in Safari, and that's all. now the send url to Safari entry has disappeared... In the GitHub page the last update is 2 years ago... I'm looking for a replacement, any idea? thank you, Giulio
  17. HI, it seems that you have simply added the folder to Alfred's buffer the buffer is a place where you temporary add files/folders while browsing, and then you'll be able to perform an action on them all at the same time here some info about adding files/folders to and using the buffer, and how to remove them https://www.alfredapp.com/help/features/file-search/#file-buffer Giulio
  18. Thanks to deanishe for the excellent and superuseful workflow
  19. I am very happy using Glosbe translation workflow http://www.packal.org/workflow/glosbe-translation out of the box, it is ready for english/german translation ende word - will translate from english to german deen word - will translate from german to english but it was very easy to customize the workflow to add new languages, so now I have also enit word - english to italian iten word - italian to english and more... hope it helps, Giulio
  20. Open Alfred preferences, click on Snippets on the left bar, and change he Hotkey it should be quite easy to find Giulio
×
×
  • Create New...