Jump to content

Guy Stan

Member
  • Content count

    29
  • Joined

  • Last visited

  1. Fantastic! You are amazing. Thank you so much for the responsiveness. I have starred and added a comment too. This option would be really logical to add and useful.
  2. By the way, would there be scope to include a modifier ‘fly’, which currently doesn’t seem to be in place? Maybe it is different for that one? It is just that google has a symbol for fly options in directions, so I was just wondering about this possibility.
  3. 'dirfh pt work': so if the modifier is put first after the command dirfh (or any command) then everything works. I just tried to type 'dirfw pt' with nothing after and that didn't work (obviously now that I think about it). If I type 'dirfw pt home' then this works. Maybe it would be good to modify the example to 'dirfw pt home' (instead of 'dirfw pt') and insist that the modifier must be given directly after the command to help others not stumble upon the same thing? Thank you for building such an awesome workflow and being so responsive!
  4. Super useful workflow. This feature though is not working for me: All commands now support the following modifiers: walk, bike, drive, pt (public transport). The modifier can be invoked by 'dirX ' e.g. 'dirfw pt ' will give you public transport directions. This also works with 'dir' and multiple waypoints. I have tried it in with 'dirfw pt'. 'dir to to drive', etc. but it seems the modifiers are not recognised.
  5. A big thank you for your fast and very useful responses!
  6. Super! Works like a charm.
  7. Hi Vitor, I have been trying to use MarkdownTransform recently as I really like the concept of it. (I am using Pandoc extensively). I understand that RedCarpet needs some specific Ruby installation but, reading through this set of posts, it seems that the latest versions of MarkdownTransform would also work with the default Ruby installation ("should now work with system ruby") on High Sierra (let me know if I am wrong). However, for me, this doesn't seem to work. I understand that I can install the latest version of ruby using homebrew, but would prefer, if at all possible, to not have to install another version of ruby alongside of the High Sierra installed one. Here is what I get when I try to use MarkdownTransform to produce some RTF from a markdown text copied in the clipboard: Starting debug for 'MarkdownTransform' [2018-01-03 08:42:18][ERROR: action.script] /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/Users/username/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.1A72E7E5-AF98-4BB3-9C50-2E1BE8F769F2/_licensed/Redcarpet/gems/redcarpet-3.4.0/lib/redcarpet.bundle, 0x0009): required dylib '/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/libruby.2.0.0.dylib' not found, needed by '/Users/username/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.1A72E7E5-AF98-4BB3-9C50-2E1BE8F769F2/_licensed/Redcarpet/gems/redcarpet-3.4.0/lib/redcarpet.bundle'. Did try: file not found '/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/libruby.2.0.0.dylib', file not found '/usr/lib/libruby.2.0.0.dylib', file not found '/usr/local/lib/libruby.2.0.0.dylib' - /Users/username/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.1A72E7E5-AF98-4BB3-9C50-2E1BE8F769F2/_licensed/Redcarpet/gems/redcarpet-3.4.0/lib/redcarpet.bundle (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Users/username/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.1A72E7E5-AF98-4BB3-9C50-2E1BE8F769F2/_licensed/Redcarpet/gems/redcarpet-3.4.0/lib/redcarpet.rb:1:in `<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from ./rtf:4:in `<main>'
  8. Guy Stan

    Airports

    Thank Jeff! Yep, I am now using your workflow. Works very well. Thank you!
  9. Thanks Dean. I suppose there is no other repository with the same features as jackal for the moment?
  10. Guy Stan

    Airports

    I have tried versions 0.1.4 and 0.1.5 and both don't work.Version 0.1.3 works. When I input anything after the keyword "airport", I get an error message. I can't figure out why this is. Can you help? Here is the log: Starting debug for 'Airports' [2017-09-22 12:48:41][ERROR: input.scriptfilter] Code 1: 12:48:41 workflow.py:2249 DEBUG workflow version: 0.1.5 12:48:41 workflow.py:1657 DEBUG reading settings from /Users/[HIDDEN]/Library/Application Support/Alfred 3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/settings.json 12:48:41 workflow.py:2532 DEBUG Update check not due 12:48:41 workflow.py:1884 DEBUG loading cached data: /Users/[HIDDEN]/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/__workflow_update_status.cpickle 12:48:41 workflow.py:2462 DEBUG update_data: {u'available': False} 12:48:41 workflow.py:1884 DEBUG loading cached data: /Users/[HIDDEN]/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/airports.cpickle ./lib/unidecode/__init__.py:46: RuntimeWarning: Argument <class 'dotmap.DotMap'> is not an unicode object. Passing an encoded string will likely have unexpected results. _warn_if_not_unicode(string) 12:48:41 workflow.py:2267 ERROR 'DotMap' object is not callable Traceback (most recent call last): File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.684F4439-C6FA-49F8-8470-A4EF92900BD1/workflow/workflow.py", line 2260, in run func(self) File "airports.py", line 100, in main filtered_airports = wf.filter(airportquery, all_airports, key_for_airports, min_score=70, match_on=MATCH_ATOM | MATCH_SUBSTRING, include_score=True) File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.684F4439-C6FA-49F8-8470-A4EF92900BD1/workflow/workflow.py", line 2076, in filter value = key(item).strip() File "airports.py", line 71, in key_for_airports searchkey = '{},{},{},{},{}'.format(unidecode(airport.iata_code), unidecode(airport.name), unidecode(airport.icao_code), unidecode(airport.country), unidecode(airport.city)) File "./lib/unidecode/__init__.py", line 48, in unidecode_expect_ascii bytestring = string.encode('ASCII') TypeError: 'DotMap' object is not callable 12:48:41 workflow.py:2290 DEBUG workflow finished in 0.687 seconds [2017-09-22 12:48:42][ERROR: input.scriptfilter] Code 1: 12:48:42 workflow.py:2249 DEBUG workflow version: 0.1.5 12:48:42 workflow.py:1657 DEBUG reading settings from /Users/[HIDDEN]/Library/Application Support/Alfred 3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/settings.json 12:48:42 workflow.py:2532 DEBUG Update check not due 12:48:42 workflow.py:1884 DEBUG loading cached data: /Users/[HIDDEN]/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/__workflow_update_status.cpickle 12:48:42 workflow.py:2462 DEBUG update_data: {u'available': False} 12:48:42 workflow.py:1884 DEBUG loading cached data: /Users/[HIDDEN]/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/tirol.basecamp.alfredworkflow.airport-codes/airports.cpickle ./lib/unidecode/__init__.py:46: RuntimeWarning: Argument <class 'dotmap.DotMap'> is not an unicode object. Passing an encoded string will likely have unexpected results. _warn_if_not_unicode(string) 12:48:42 workflow.py:2267 ERROR 'DotMap' object is not callable Traceback (most recent call last): File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.684F4439-C6FA-49F8-8470-A4EF92900BD1/workflow/workflow.py", line 2260, in run func(self) File "airports.py", line 100, in main filtered_airports = wf.filter(airportquery, all_airports, key_for_airports, min_score=70, match_on=MATCH_ATOM | MATCH_SUBSTRING, include_score=True) File "/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.684F4439-C6FA-49F8-8470-A4EF92900BD1/workflow/workflow.py", line 2076, in filter value = key(item).strip() File "airports.py", line 71, in key_for_airports searchkey = '{},{},{},{},{}'.format(unidecode(airport.iata_code), unidecode(airport.name), unidecode(airport.icao_code), unidecode(airport.country), unidecode(airport.city)) File "./lib/unidecode/__init__.py", line 48, in unidecode_expect_ascii bytestring = string.encode('ASCII') TypeError: 'DotMap' object is not callable 12:48:42 workflow.py:2290 DEBUG workflow finished in 0.646 seconds
  11. Also, with packal not really working for updates is there an easy way to update all workflows or does the user need to go and fetch updates one by one for each workflow?
  12. Is the development of Packal and "Packal Updater" by Shaun stopped? Is that why Vitor, you, and other key contributors have their own package update mechanisms now? Packal has been a great resource and it would be a shame to not have a central alfred workflow repository that also allows to keep things up to date.
  13. Hi Dean, Here is the info that I found in the log: 20:44:17 update_workflows.py:132 ERROR bad packal/package.xml in workflow u'/Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.72743D30-3F8E-4030-932F-D8806264EAC3': not well-formed (invalid token): line 3, column 15 20:44:17 update_workflows.py:121 WARNING no bundleid in info.plist : /Users/[HIDDEN]]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.9AD62F98-E484-4A19-A97B-B00CAFE9E4CF 20:44:17 update_workflows.py:121 WARNING no bundleid in info.plist : /Users/[HIDDEN]/Desktop/Dropbox/Alfred3_Sync_Folder/Alfred.alfredpreferences/workflows/user.workflow.D322F5A0-9FC2-4341-9807-ABBEC77DD0AC Workflow "user.workflow.72743D30-3F8E-4030-932F-D8806264EAC3" seems to be this one: http://www.packal.org/workflow/files-and-folders The problem is in the file packal/package.xml, line 3, column 15: use of the character "&". I have corrected the error by replacing "&" with "and" for the name of the workflow and this solves the problem.
×