fniephaus / alfred-dropbox Goto Github PK
View Code? Open in Web Editor NEWAccess multiple Dropbox accounts with Alfred
License: MIT License
Access multiple Dropbox accounts with Alfred
License: MIT License
I'm very likely not understanding exactly what this workflow is copying to the clipboard but I'm trying to build my own workflow that simply accesses one folder (within public directory) of my drop box, queries by filename, copies to clipboard the public dropbox link for the file on return and then pastes it into the current cursor location .
I've got everything but the last two working just fine. I always get a broken link on my workflow and when I used yours the shared link only returns a static image of the gif.
I know yours is directly using the DB API whereas I think what I'm trying to do is locally access the files and somehow copy the public link (as you would by right-clicking the file in finder) and then paste it, but one step at a time of course.
Feel free to just close this, but I've seen and used a lot of your workflows and I'd appreciate any tips you could send my way!
Recently, I've installed OsX El Capitan, and now, I have this error when I browse a dropbox (a problem with the accents in folder name) :
Error in workflow 'com.fniephaus.dropbox'
'ascii' codec can't encode character u'\xe9' in position 37 origninal not in range(128)
Do you know how I can fix that ?
Starting debug for 'Dropbox for Alfred - COPY'
[2018-10-03 08:52:37][ERROR: input.scriptfilter] Code 1: 08:52:37 workflow.py:2249 DEBUG workflow version: 2.3.0
08:52:37 workflow.py:1657 DEBUG reading settings from /Users/Benjamin/Library/Application Support/Alfred 3/Workflow Data/com.fniephaus.dropbox/settings.json
08:52:37 workflow.py:2532 DEBUG Update check not due
08:52:37 workflow.py:1884 DEBUG loading cached data: /Users/Benjamin/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/__workflow_update_status.cpickle
08:52:37 workflow.py:2462 DEBUG update_data: {u'available': False}
08:52:37 workflow.py:2651 DEBUG Got password : com.fniephaus.dropbox:dropbox_access_tokens
08:52:37 workflow.py:2651 DEBUG Got password : com.fniephaus.dropbox:dropbox_access_tokens
08:52:37 workflow.py:2267 ERROR [400] u'v1_retired'
Traceback (most recent call last):
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/workflow/workflow.py", line 2260, in run
func(self)
File "dropbox_filter.py", line 28, in main
'dropbox_accounts', data_func=get_account_info, max_age=360)
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/workflow/workflow.py", line 1890, in cached_data
data = data_func()
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/helpers.py", line 40, in get_account_info
output.append(api_client.account_info())
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/dropbox/client.py", line 149, in account_info
return self.rest_client.GET(url, headers)
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/dropbox/rest.py", line 311, in GET
return cls.IMPL.GET(*n, **kw)
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/dropbox/rest.py", line 246, in GET
return self.request("GET", url, headers=headers, raw_response=raw_response)
File "/Users/Benjamin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.4A420B7A-3718-4454-AAF6-8A6EBB65ED2C/dropbox/rest.py", line 227, in request
raise ErrorResponse(r, r.read())
ErrorResponse: [400] u'v1_retired'
08:52:37 workflow.py:2269 INFO for assistance, see: https://github.com/fniephaus/alfred-dropbox/issues
08:52:37 workflow.py:2290 DEBUG workflow finished in 0.375 seconds
Hello Fabio, I had the workflow installed and authorised and after updating to 2.2 version it doesn't work anymore. I deleted the keychain, and the auth from dropbox, but can't authorise it again.
This is the debugger log:
19:17:05 workflow.py:1628 DEBUG Reading settings from `/Users/pablo/Library/Application Support/Alfred 3/Workflow Data/com.fniephaus.dropbox/settings.json` ...
19:17:05 workflow.py:2514 DEBUG Update check not due
19:17:05 workflow.py:1859 DEBUG Loading cached data from : /Users/pablo/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/__workflow_update_status.cpickle
19:17:05 workflow.py:2444 DEBUG update_data : {u'available': True, u'version': u'v2.2', u'download_url': u'https://github.com/fniephaus/alfred-dropbox/releases/download/v2.2/Dropbox-Client-for-Alfred.alfredworkflow'}
19:17:05 workflow.py:2243 ERROR 'Workflow' object has no attribute 'update_info'
Traceback (most recent call last):
File "/Users/pablo/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.602B4993-EECA-480F-B1CB-964C0C5A5129/workflow/workflow.py", line 2236, in run
func(self)
File "dropbox_filter.py", line 16, in main
subtitle = 'New: %s' % wf.update_info['body']
AttributeError: 'Workflow' object has no attribute 'update_info'
19:17:05 workflow.py:2246 INFO For assistance, see: https://github.com/fniephaus/alfred-dropbox/issues
19:17:05 workflow.py:2267 DEBUG Workflow finished in 0.014 seconds.```
[2018-06-13 11:24:21][ERROR: input.scriptfilter] Code 1: 11:24:21 workflow.py:2249 DEBUG workflow version: 2.3.0
11:24:21 workflow.py:1657 DEBUG reading settings from /Users/x/Library/Application Support/Alfred 3/Workflow Data/com.fniephaus.dropbox/settings.json
11:24:21 workflow.py:2532 DEBUG Update check not due
11:24:21 workflow.py:1884 DEBUG loading cached data: /Users/x/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/__workflow_update_status.cpickle
11:24:21 workflow.py:2462 DEBUG update_data: {u'available': False}
11:24:21 workflow.py:2651 DEBUG Got password : com.fniephaus.dropbox:dropbox_access_tokens
11:24:21 workflow.py:2651 DEBUG Got password : com.fniephaus.dropbox:dropbox_access_tokens
11:24:21 workflow.py:2267 ERROR [400] u'v1_retired'
Traceback (most recent call last):
File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/workflow/workflow.py", line 2260, in run
func(self)
File "dropbox_filter.py", line 28, in main
'dropbox_accounts', data_func=get_account_info, max_age=360)
File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/workflow/workflow.py", line 1890, in cached_data
data = data_func()
File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/helpers.py", line 40, in get_account_info
output.append(api_client.account_info())
File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/dropbox/client.py", line 149, in account_info
return self.rest_client.GET(url, headers)
File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/dropbox/rest.py", line 311, in GET
return cls.IMPL.GET(*n, **kw)
File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/dropbox/rest.py", line 246, in GET
return self.request("GET", url, headers=headers, raw_response=raw_response)
File "/Users/x/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.0A1B5C13-ED4A-401B-ACB3-CDC92AE4DDFE/dropbox/rest.py", line 227, in request
raise ErrorResponse(r, r.read())
ErrorResponse: [400] u'v1_retired'
11:24:21 workflow.py:2269 INFO for assistance, see: https://github.com/fniephaus/alfred-dropbox/issues
11:24:21 workflow.py:2290 DEBUG workflow finished in 0.229 seconds
Hi there,
Great work!
Is that possible to enable file search feature?
When no auth token is set:
The workflow throws an exception:
Starting debug for 'Dropbox for Alfred'
[2017-04-23 18:07:14][STDERR: input.scriptfilter] Workflow version : 2.1.0
The debug log can be found in the log file:
/Users/Sepehr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/com.fniephaus.dropbox.log
Workflow finished in 0.044 seconds.
[2017-04-23 18:07:15][STDERR: input.scriptfilter] Workflow version : 2.1.0
The debug log can be found in the log file:
/Users/Sepehr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/com.fniephaus.dropbox.log
Workflow finished in 0.061 seconds.
[2017-04-23 18:07:21][ERROR: action.script] Traceback (most recent call last):
File "dropbox_handler.py", line 5, in <module>
from AppKit import NSPasteboard, NSArray
ImportError: No module named AppKit
[2017-04-23 18:08:18][STDERR: input.scriptfilter] Workflow version : 2.1.0
The debug log can be found in the log file:
/Users/Sepehr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/com.fniephaus.dropbox.log
Workflow finished in 0.078 seconds.
[2017-04-23 18:09:42][STDERR: input.scriptfilter] Workflow version : 2.1.0
The debug log can be found in the log file:
/Users/Sepehr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/com.fniephaus.dropbox.log
Workflow finished in 0.066 seconds.
[2017-04-23 18:09:44][STDERR: input.scriptfilter] Workflow version : 2.1.0
The debug log can be found in the log file:
/Users/Sepehr/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.fniephaus.dropbox/com.fniephaus.dropbox.log
Workflow finished in 0.062 seconds.
[2017-04-23 18:09:59][ERROR: action.script] Traceback (most recent call last):
File "dropbox_handler.py", line 5, in <module>
from AppKit import NSPasteboard, NSArray
ImportError: No module named AppKit
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.