spamwax / alfred-pinboard-rs Goto Github PK
View Code? Open in Web Editor NEWAlfred Workflow for Pinboard (Rust)
License: Other
Alfred Workflow for Pinboard (Rust)
License: Other
Hi,
If I try to save a bookmark with "p tag1...." I´ll get an error message and currently I have no clue how to handle it. Same when I try to search a bookmark
Setting the auth token was no problem.
System: macOS 10.14.1
Workflow: 0.14.3
Log:
Starting debug for 'Rusty Pin'
[2018-11-20 21:55:31][input.scriptfilter] Queuing argument ''
[2018-11-20 21:55:38][input.scriptfilter] Script with argument '' finished
[2018-11-20 21:55:38][ERROR: input.scriptfilter] Code 1: DEBUG 2018-11-20T20:55:31Z: alfred_pinboard_rs: Parsing input arguments.
DEBUG 2018-11-20T20:55:31Z: alfred_pinboard_rs: Deciding on which command branch
DEBUG 2018-11-20T20:55:31Z: alfred_pinboard_rs: Starting in setup
DEBUG 2018-11-20T20:55:31Z: alfred_pinboard_rs::workflow_config: Starting in setup
DEBUG 2018-11-20T20:55:31Z: alfred_pinboard_rs::workflow_config: Starting in get_workflow_dirs
DEBUG 2018-11-20T20:55:31Z: alfred_pinboard_rs::workflow_config: Starting in read
DEBUG 2018-11-20T20:55:31Z: alfred_pinboard_rs::workflow_config: Starting in get_alfred_version
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard: pinb::new: calling CachedData::new
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard::cached_data: new: starting
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard::cached_data: cached_dir: "/Users/alex/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard::cached_data: create_cache_dir: starting
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard::cached_data: success create_cache_dir: "/Users/alex/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard::cached_data: load_cache_data_from_file: starting
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard::cached_data: cache_ok: starting
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard: pinb::new: cache file missing, calling update
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard::cached_data: update_cache: starting
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard::api: all_pins: starting.
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard::api: get_api_response: starting.
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard::api: url: "https://api.pinboard.in/v1/posts/all"
DEBUG 2018-11-20T20:55:31Z: rusty_pin::pinboard::api: add_auth_token: starting.
DEBUG 2018-11-20T20:55:33Z: rusty_pin::pinboard::api: resp is ok (no error)
DEBUG 2018-11-20T20:55:38Z: rusty_pin::pinboard::api: string from resp ok
DEBUG 2018-11-20T20:55:38Z: rusty_pin::pinboard::api: received all bookmarks
DEBUG 2018-11-20T20:55:38Z: alfred_pinboard_rs: Starting in show_error_alfred
[2018-11-20 21:55:38][input.scriptfilter] {"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"expected value at line 1562 column 1","title":"Error"}]}
[2018-11-20 21:55:41][input.scriptfilter] Queuing argument 'T'
[2018-11-20 21:55:41][input.scriptfilter] Queuing argument 'Te'
[2018-11-20 21:55:42][input.scriptfilter] Queuing argument 'Tes'
[2018-11-20 21:55:42][input.scriptfilter] Queuing argument 'Test'
[2018-11-20 21:55:43][input.scriptfilter] Queuing argument 'Test+'
[2018-11-20 21:55:44][input.scriptfilter] Queuing argument 'Test'
[2018-11-20 21:55:44][input.scriptfilter] Script with argument 'T' finished
[2018-11-20 21:55:44][ERROR: input.scriptfilter] Code 1: DEBUG 2018-11-20T20:55:41Z: alfred_pinboard_rs: Parsing input arguments.
DEBUG 2018-11-20T20:55:41Z: alfred_pinboard_rs: Deciding on which command branch
DEBUG 2018-11-20T20:55:41Z: alfred_pinboard_rs: Starting in setup
DEBUG 2018-11-20T20:55:41Z: alfred_pinboard_rs::workflow_config: Starting in setup
DEBUG 2018-11-20T20:55:41Z: alfred_pinboard_rs::workflow_config: Starting in get_workflow_dirs
DEBUG 2018-11-20T20:55:41Z: alfred_pinboard_rs::workflow_config: Starting in read
DEBUG 2018-11-20T20:55:41Z: alfred_pinboard_rs::workflow_config: Starting in get_alfred_version
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard: pinb::new: calling CachedData::new
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard::cached_data: new: starting
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard::cached_data: cached_dir: "/Users/alex/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard::cached_data: create_cache_dir: starting
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard::cached_data: success create_cache_dir: "/Users/alex/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard::cached_data: load_cache_data_from_file: starting
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard::cached_data: cache_ok: starting
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard: pinb::new: cache file missing, calling update
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard::cached_data: update_cache: starting
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard::api: all_pins: starting.
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard::api: get_api_response: starting.
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard::api: url: "https://api.pinboard.in/v1/posts/all"
DEBUG 2018-11-20T20:55:41Z: rusty_pin::pinboard::api: add_auth_token: starting.
DEBUG 2018-11-20T20:55:43Z: rusty_pin::pinboard::api: resp is ok (no error)
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::api: string from resp ok
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::api: received all bookmarks
DEBUG 2018-11-20T20:55:44Z: alfred_pinboard_rs: Starting in show_error_alfred
[2018-11-20 21:55:44][input.scriptfilter] {"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"expected value at line 1562 column 1","title":"Error"}]}
[2018-11-20 21:55:44][input.scriptfilter] Processing output of 'utility.junction' with arg ''
[2018-11-20 21:55:44][utility.junction] Processing output of 'utility.filter' with arg ''
[2018-11-20 21:55:44][utility.filter] Processing output of 'action.script' with arg ''
[2018-11-20 21:55:44][utility.junction] Processing output of 'utility.filter' with arg ''
[2018-11-20 21:56:00][ERROR: action.script] DEBUG 2018-11-20T20:55:44Z: alfred_pinboard_rs: Parsing input arguments.
DEBUG 2018-11-20T20:55:44Z: alfred_pinboard_rs: Deciding on which command branch
DEBUG 2018-11-20T20:55:44Z: alfred_pinboard_rs: Starting in setup
DEBUG 2018-11-20T20:55:44Z: alfred_pinboard_rs::workflow_config: Starting in setup
DEBUG 2018-11-20T20:55:44Z: alfred_pinboard_rs::workflow_config: Starting in get_workflow_dirs
DEBUG 2018-11-20T20:55:44Z: alfred_pinboard_rs::workflow_config: Starting in read
DEBUG 2018-11-20T20:55:44Z: alfred_pinboard_rs::workflow_config: Starting in get_alfred_version
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard: pinb::new: calling CachedData::new
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::cached_data: new: starting
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::cached_data: cached_dir: "/Users/alex/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::cached_data: create_cache_dir: starting
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::cached_data: success create_cache_dir: "/Users/alex/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::cached_data: load_cache_data_from_file: starting
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::cached_data: cache_ok: starting
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard: pinb::new: cache file missing, calling update
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::cached_data: update_cache: starting
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::api: all_pins: starting.
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::api: get_api_response: starting.
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::api: url: "https://api.pinboard.in/v1/posts/all"
DEBUG 2018-11-20T20:55:44Z: rusty_pin::pinboard::api: add_auth_token: starting.
DEBUG 2018-11-20T20:55:53Z: rusty_pin::pinboard::api: resp is ok (no error)
DEBUG 2018-11-20T20:55:59Z: rusty_pin::pinboard::api: string from resp ok
DEBUG 2018-11-20T20:55:59Z: rusty_pin::pinboard::api: received all bookmarks
DEBUG 2018-11-20T20:55:59Z: alfred_pinboard_rs: Starting in show_error_alfred
[2018-11-20 21:56:00][action.script] Processing output of 'utility.junction' with arg '{"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"expected value at line 1562 column 1","title":"Error"}]}'
[2018-11-20 21:56:00][utility.junction] Processing output of 'utility.filter' with arg '{"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"expected value at line 1562 column 1","title":"Error"}]}'
[2018-11-20 21:56:00][utility.junction] Processing output of 'utility.filter' with arg '{"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"expected value at line 1562 column 1","title":"Error"}]}'
[2018-11-20 21:56:00][utility.junction] Processing output of 'utility.filter' with arg '{"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"expected value at line 1562 column 1","title":"Error"}]}'
Cheers
Alex
So today when I was using your workflow, all of the sudden I could no longer fetch my tags. I removed and reinstalled the workflow, but everything I did was of no avail. So I took a look at the error message from the workflow's bash scripts when I ran ./alfred-pinboard-rs list
:
thread 'main' panicked at 'Invalid url: Error { kind: UrlBadScheme, url: Some("file:///C:/Users/alwc/Downloads/test.pdf") }', src/libcore/result.rs:1009:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
After that I removed the bookmark with file:///Users/alwc/Downloads/test.pdf
url on the pinboard website and reinstalled the workflow, then everything works smoothly once again!
TL;DR: I suspect urls that do not begin with 'http(s)' will crash the workflow.
v0.10.10
$ ./alfred-pinboard-rs config -a [...]
$ ./alfred-pinboard-rs update
{"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"serde error: invalid type: boolean `false`, expected a string at line 1964 column 60","title":"Error"}]}[
posts/all, line 1964:
{"href":"http:\/\/www.dialektkarte.de\/","description":false,"extended":"German dialects. Click on a pin on the map and hear speaker from that part of Germany","meta":"04cb556fa05daff3fb210eb2906d46c3","hash":"8fe8b63d7fcf5428385bfe0031f1bb33","time":"2016-01-29T16:29:05Z","shared":"yes","toread":"no","tags":""},
There was only one bookmark with a false
description. Looking at the API docs the type is string, so it must be a type anomaly on the server. I deleted it and got the next error:
{"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"serde error: relative URL without a base at line 5634 column 12","title":"Error"}]}
{"href":"\/","description":"","extended":"","meta":"a72a1627a6211c18fcc90f4aefd9b842","hash":"6666cd76f96956469e7be39d750cc7d9","time":"1970-01-01T00:00:00Z","shared":"yes","toread":"no","tags":""}]
Unfortunately I can't delete this one bad entry (and it doesn't show in the web interface):
$ curl -v 'https://api.pinboard.in/v1/posts/delete?format=json&auth_token=[...]&url=%2F'
{"result_code":"item not found"}
When adding a bookmark, you can add a description using a semicolon (e.g. p tag1 tag2 ; description
).
I'd love the ability to also add a custom title as opposed to what the title of the page is. Perhaps with a colon?
p tag1 ; description : title
p tag1 : title
Hi, this is my first install of your workflow, I just found it. I've installed v0.15.11 and I'm running Alfred 4, fully up to date, on macOS 10.15.4. I first got a macOS error for an unrecognized developer, but I allowed it via System Preferences > Security & Privacy.
I have a valid Pinboard account and I even refreshed my API token in trying to fix this error.
Upon trying to authorize pa username:token
, I get the large text error on screen. See attached.
Any ideas what is wrong/why failing? Thanks!
First: great workflow! Thanks for making this.
Little bug: when using the alt
modifier to Reveal the bookmark on the pinboard.in website, the constructed URL is incorrect since it hardcodes /u:hamid/?query=...
Better would be to grab the username somewhere when user sets the API key, or if that's not possible, then require the user to set it via a workflow environment variable e.g.
and then
The README has a typo: "Desrciption"
Hello,
i really enjoy this workflow. The only issue i have is that i can't use the same Pinbord account on both of my Mac Machines for this workflow...is this a known limitation or is it a bug?
Thanks!
I just added a bookmark using the below format
p <new_non_existing_tag> <existing_tag>
p news UK
When I try to search for pt news
-> It doesn't show anything. The tag is not updated.
When I try to search for pt UK
-> The count is not updated. The older count was 17 and it is still 17 (it should have been 18).
However, pt UK
does show the new URL that was bookmarked. So the URL itself is updated in cache. Just the tags are not updated.
Browser: Safari 12.0
OS: macOS High Sierra 10.13.6
That's it. Is it possible to edit a tag within Alfred?
After downloading latest and the initial setup (oauth works: logs looking good, no error; the curl command on all posts works fine).
when I try to save a url with an active window in Safari (13.0.3), all I get in the console is:
{"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"expected value at line 4981 column 1","title":"Error"}]}
In the Alfred toolbar, I only get a laconic "Error".
OSX 10.14.6
Safari 13.0.3
Alfred 4.0.6
Rusty Pin 0.15.9
Rust: stable 1.39.0 (via Brew)
What could I do to sort it out?
I enabled Shared Bookmarking, but it looks like holding option still posts as shared. This suggests to me that there's no way to post a private bookmark without temporarily changing the global setting first.
I haven't actually tested posting this way yet, but the subtitle still says SHARED and the repo README says it'll post as shared.
Hi
Thanks for this awesome workflow but I'm having a problem with the saved tag (as per title). Steps to reproduce:
p github issue;
issue
tag will be saved with a backslash. Refer to the screenshot for an exampleWorkflow version: v0.11.0
Hi
I'm trying to go through the first configuration without success. I am probably making a simple mistake..?
Pinoboard API token is valid (to be sure I generated a new one) and I have only one bookmark on my pinboard account.
MacOS 10.15.5 + Alfred 4.0.9_1144
[12:34:41.760] Logging Started...
[12:34:49.998] Rusty Pin[Keyword] Processing complete
[12:34:49.998] Rusty Pin[Keyword] Passing output 'm___:___4' to Run Script
[12:34:50.013] STDERR: Rusty Pin[Run Script] [2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs] Parsing input arguments.
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs] Deciding on which command branch
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::commands::config] Starting in run
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] Starting in setup
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_workflow_dirs
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] cache_dir: /Users/jonasz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] data_dir: /Users/jonasz/Library/Application Support/Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] Starting in read
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_alfred_version
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] Starting in save
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::commands::config] Saved new configs to settings.json in: /Users/jonasz/Library/Application Support/Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[12:34:50.015] Rusty Pin[Run Script] Processing complete
[12:34:50.016] Rusty Pin[Run Script] Passing output 'Successfully set user credentials.
' to Conditional
[12:34:50.016] Rusty Pin[Conditional] Processing complete
[12:34:50.017] Rusty Pin[Conditional] Passing output 'Successfully set user credentials.
' to Run Script
[12:34:50.872] STDERR: Rusty Pin[Run Script] [2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs] Parsing input arguments.
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs] Deciding on which command branch
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs] Starting in setup
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] Starting in setup
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_workflow_dirs
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] cache_dir: /Users/jonasz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] data_dir: /Users/jonasz/Library/Application Support/Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] Starting in read
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_alfred_version
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard] pinb::new: calling CachedData::new
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::cached_data] new: starting
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::cached_data] cached_dir: "/Users/jonasz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::cached_data] create_cache_dir: starting
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::cached_data] success create_cache_dir: "/Users/jonasz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::cached_data] load_cache_data_from_file: starting
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::cached_data] cache_ok: starting
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard] pinb::new: cache file missing, calling update
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::cached_data] update_cache: starting
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::api] all_pins: starting.
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::api] get_api_response: starting.
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::api] url: "https://api.pinboard.in/v1/posts/all"
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::api] add_auth_token: starting.
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::api] resp is ok (no error)
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::api] string from resp ok
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::api] ['\u{feff}', '[', '{', '"', 'h', 'r', 'e', 'f', '"', ':']
[2020-06-16T10:34:50Z DEBUG rusty_pin::pinboard::api] received all bookmarks
[2020-06-16T10:34:50Z DEBUG alfred_pinboard_rs] Starting in show_error_alfred
[12:34:50.881] Rusty Pin[Run Script] Processing complete
[12:34:50.882] Rusty Pin[Run Script] Passing output '{"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"expected value at line 1 column 1","title":"Error"}]}
' to Junction
[12:34:50.883] Rusty Pin[Junction] Processing complete
[12:34:50.884] Rusty Pin[Junction] Passing output '{"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"expected value at line 1 column 1","title":"Error"}]}
' to Filter
[12:34:50.884] Rusty Pin[Junction] Passing output '{"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"expected value at line 1 column 1","title":"Error"}]}
' to Filter
[12:34:50.885] Rusty Pin[Filter] Processing complete
[12:34:50.886] Rusty Pin[Filter] Passing output '{"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"expected value at line 1 column 1","title":"Error"}]}
' to Post Notification
Edit: Alfred v 4.0.6.
Type pa myusername:XXXX
, no reponse.
Open terminal and cd to the plugin dir, run ./alfred-pinboard-rs config -a myusername:XXXX
, get error
[2019-12-05T15:04:59Z ERROR alfred_pinboard_rs::commands::config] Couldn't save config file: ErrorMessage { msg: "missing env variable for data dir. forgot to set workflow bundle id?"
Recently discovered this, and was thrilled – it's excellent! I note that bookmark titles always appear all lowercase. Is there a setting for this, if I want to see titles in the case they appear on the Pinboard site? Thanks in advance.
Hi,
First off, thank you for this great workflow.
I tried to bookmark a page in Opera and got this error Cannot get browser's URL
.
FYI, I have both Chrome and Opera opened at the same time, but opera is the frontmost window when trying to bookmark the current page.
Of course, I noticed while reading the README that Opera is not a supported browser.
Do you plan on supporting it in the future?
Thanks,
I really like the feature that lets me hold down Alt to jump to the bookmark on pinboard.in. A related feature request? I'd love to be able to hold down a modifier that would copy the URL to the clipboard (directly from Alfred), instead of opening it on the web.
Title says it all. It'd be great if you can add in support for Vivaldi Snaphot.
I tried editing the applescript myself it but no luck. macOS won't ask to give permission to Alfred for access.
Snapshot does use the same bundle ID as regular Vivaldi so maybe that's the issue.
Thanks!
Hi spamwax,
Just found that the extension convert the title case. So instead of open this link :
https://docs.google.com/spreadsheets/d/1WRO40bescpob6kjvey3qhyihfggxxiuqzynyrl8fj9m
It open this link
https://docs.google.com/spreadsheets/d/1wrm40bescpob6kjvey3qhyihfggxxiuqzynyrl8fj9m
While this is work for 90% site out there. Google seems treat the title case as important. As such when I open that link in google drive, it failed to open.
Is it possible to keep the title case intact? Thanks.
Loving this workflow. Wondering if it is possible to add a feature to open all matched results all at the same time. kinda like in Safari you can open all bookmark in a folder all at once.
Use case like:
search "Mac" and "news" which will show all the Mac news related bookmarks and open them all at once.
Thank you for your wonderful work :)
Hello,
I found that some search results were missing when I search bookmarks with existing tags. This does not always happen, but when using some keywords to search (I tried several keywords, some works fine, but some have this problem), it will only show the bookmarks that include the keywords in title, but miss the bookmarks that have the keywords in their tags.
I recorded 3 GIF using pt
and ps
command to search some tags. You can notice the difference between the number of bookmarks using the given tag and the number of results of searching the tag.
For the third GIF, I need to point out that there are two bookmarks contain the tag "iTerm", and the one shown in search result also contain the keyword "iTerm" in its title.
Since I only have a few bookmarks now, this can be easily noticed by me. I am not sure whether other people have keywords that facing the same problem, so please tell me what I can help if there is difficulty to reproduce this.
I pretty appreciate this workflow, which is the best Pinboard workflow I found. Thank you for creating this workflow.
Version information:
I saw Issue 8 about Firefox and invoking Large Text with Tag Suggestions on. The answer and README note imply that this should be OK with tag suggestions turned off. However, that is not my experience: I have the same issue of large text being invoked despite turning tag suggestions off. Is there any way to use this workflow with Firefox?
It would be great if there were some way that, when I invoke this workflow to add a bookmark, there was an indication if the page has already been bookmarked. Or is there some way to see this already?
Using pconf
, I keep having to reset "Mark new bookmarks as toread" back to false
. It seems the config changes don't stick.
After entering in my Pinboard credentials using pa
, I get the notification saying the credentials were successfully set. However, I then immediately see an error message:
From there, any command I try to use (searching, adding a bookmark, etc.) results in a similar error.
I installed the latest version and am running Alfred 4.0.8 on a Mac running OS 10.14.6.
Any idea what could be the issue?
I can set my token ok but when i try to do anything else it times out. Here is my attempt to search for the tag "javascript".
Starting debug for 'Rusty Pin'
[2018-10-30 18:45:37][input.scriptfilter] Queuing argument 'javascript'
[2018-10-30 18:46:07][input.scriptfilter] Script with argument 'javascript' finished
[2018-10-30 18:46:07][ERROR: input.scriptfilter] Code 1: DEBUG 2018-10-30T22:45:37Z: alfred_pinboard_rs: Parsing input arguments.
DEBUG 2018-10-30T22:45:37Z: alfred_pinboard_rs: Deciding on which command branch
DEBUG 2018-10-30T22:45:37Z: alfred_pinboard_rs: Starting in setup
DEBUG 2018-10-30T22:45:37Z: alfred_pinboard_rs::workflow_config: Starting in setup
DEBUG 2018-10-30T22:45:37Z: alfred_pinboard_rs::workflow_config: Starting in get_workflow_dirs
DEBUG 2018-10-30T22:45:37Z: alfred_pinboard_rs::workflow_config: Starting in read
DEBUG 2018-10-30T22:45:37Z: alfred_pinboard_rs::workflow_config: Starting in get_alfred_version
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard: pinb::new: calling CachedData::new
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard::cached_data: new: starting
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard::cached_data: cached_dir: "/Users/derick.rodriguez/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard::cached_data: create_cache_dir: starting
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard::cached_data: success create_cache_dir: "/Users/derick.rodriguez/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/cc.hamid.alfred-pinboard-rs"
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard::cached_data: load_cache_data_from_file: starting
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard::cached_data: cache_ok: starting
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard: pinb::new: cache file missing, calling update
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard::cached_data: update_cache: starting
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard::api: all_pins: starting.
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard::api: get_api_response: starting.
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard::api: url: "https://api.pinboard.in/v1/posts/all"
DEBUG 2018-10-30T22:45:37Z: rusty_pin::pinboard::api: add_auth_token: starting.
DEBUG 2018-10-30T22:46:07Z: rusty_pin::pinboard::api: ERR: "timed out"
DEBUG 2018-10-30T22:46:07Z: alfred_pinboard_rs: Starting in show_error_alfred
[2018-10-30 18:46:07][input.scriptfilter] {"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"timed out","title":"Error"}]}
[2018-10-30 18:48:56][input.scriptfilter] Queuing argument 'javascript'
Hello,
Not sure if I need a specific (newer?) version of macos and/or some quicklook plugin, but I'm not getting the pin/website preview, I only see a safari icon and pin title.
Alfred: up-to-date
alfred-pinboard-rs: up-to-date
macOs: 10.11.6
See preview of github page
Let me know if you need anything else, and thank you!
Hi,
thank you for great workflow — works very well, is fast and everything ❤️
I'd like to be able to add notes as well. What I imagine is very close to posting new pin, only except pulling the URL of frontmost browser, it would paste clipboard contents.
So, in alfred you'd do
pn @tag, @tag2; Note title
And it would create a note with tags and title in the background.
Thank you for considering this.
That's a great ponboard workflow for alfred and very nice feature for searching and updating bookmarks.
But I have a requirement, that's showing the bookmarks quickly filter as like unread, started, private and public.
Because I usually save bookmark as a read lately, so the reading list of unread is usefully.
Would you guys please support this feature?
Thanks.
This is an excellent tool and I have a suggestion/request. Currently I have to press Command to see all the tags for found items. It would be great if there was a setting to always show tags for each result. Being able to see related tags by default would be very useful.
When I enter my Pinboard credentials, I get a notification that the credentials are successfully set but after a few seconds I get a new notification about invalid server response (invalid port number....; I can't see the entire log message; here is a screenshot on Dropbox).
Would be awesome if there was a way to show all unread pins in the same way you can view these on Pinboard, viz. https://pinboard.in/u:user/unread/.
Currently it is impossible to save a page to pinboard without entering at least one tag.
Saving to PB is working fine. URLs are being saved in correct case but when launching URLS in chrome from Alfred I get all lower case letters. This is a problem as some URLs have to be in correct case to work.
Example:
URL Saved to pinboard:
https://documenter.getpostman.com/view/14752/RWEnmFPv
works! :-)
URL launched in browser:
https://documenter.getpostman.com/view/14752/rwenmfpv
no worky ! :-(
Thanks for this awesome workflow!
My issue is that Alfred exists (with an alert sound) after I type "p" (basically every commands start with "p") in Alfred while Firefox is focused. If Firefox is not focused, typing "p" and related shortcuts works fine. I'm using a fresh install of this workflow with default configurations.
After some troubleshooting, I see the following known issue in README:
Firefox: While tag suggestions and "Check if page is bookmarked" options are enabled, posting bookmark from Firefox is broken. Deleting bookmarks using pind won't work when Firefox is your active browser. Reason: Firefox does not properly support interacting with it programatically.
So I set option "Check if page is bookmarked" to false, and now the issue goes away!
However, if I understand it correctly, this enabled option should only break the functionality of posting and deleting bookmark from Firefox. So it was not supposed to cause Alfred to error out and thus make this workflow unusable.
Please let me know if you need more information.
I'm running the latest version of the workflow (0.15.12 as of this filing) and something weird has something happened:
p <some tags> ; <a comment>
and hit returnHere's the Afred debug spew with some annotations.
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard] add_pin: starting.
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api] add_url: starting.
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api] url: https://www.bluetoothle.wiki/start
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api] Sending payload to: https://api.pinboard.in/v1/posts/add
{"shared": "no", "extended": "Bluetooth wiki", "toread": "no", "replace": "yes", "url": "https://www.bluetoothle.wiki/start", "description": "start [Bluetooth® LE Wiki]", "tags": "hardware"}
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api] get_api_response: starting.
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api] url: "https://api.pinboard.in/v1/posts/add"
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api] add_auth_token: starting.
[2020-06-19T10:27:54Z DEBUG rusty_pin::pinboard::api] resp is ok (no error)
[2020-06-19T10:27:54Z DEBUG rusty_pin::pinboard::api] string from resp ok
So this looks good to here in that pinboard is up and returned its response. (And the bookmark got posted.)
[2020-06-19T10:27:54Z DEBUG rusty_pin::pinboard::api] ['\u{feff}', '{', '\"', 'r', 'e', 's', 'u', 'l', 't', '_']
Is the \u{feff}
meant to be there?
[06:27:54.434] Rusty Pin[Run Script] Processing complete
[06:27:54.434] Rusty Pin[Run Script] Passing output 'Error: invalid server response: expected value at line 1 column 1
' to Junction
There was more but I'm not sure that it's useful. The error is just propagating correctly I think through the workflow.
If i try to save a new bookmark in Google Chrome i get the following error:
osascript error: code exit: 1
Alfred 4 is just out and I was refreshing my workflows. Awesome work on this one but the search seems to be broken. Tag search is working, adding a site is working, but ps don't display / find anything. ;) Just a heads up! Have a nice week!
Question: Is there a shortcut to see if a current URL is bookmarked or not. And if bookmarked, what are the tags.
Sometimes I run across a bookmark that was previously saved, but I don't seem to be able to append any tags to it. Is that as designed? Is it possible to save with updated tags?
Getting the above in Alfred 4.
Have been getting this for a while so I removed the workflow and re-imported/installed.
What am I missing here?
Here is from my logs:
[14:10:33.770] Logging Started...
[14:10:47.560] STDERR: Rusty Pin[Script Filter] [2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs] Parsing input arguments.
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs] Deciding on which command branch
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs] Starting in setup
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] Starting in setup
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_workflow_dirs
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] cache_dir: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] data_dir: /Users/smusz/Library/Application Support/Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] Starting in read
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_alfred_version
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard] pinb::new: calling CachedData::new
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] new: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] cached_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] create_cache_dir: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] success create_cache_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] load_cache_data_from_file: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] read_cached_pins: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] read_cached_tags: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] cache_ok: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard] pinb::new: cache not missing
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard] enable_fuzzy_search: starting.
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard] enable_tag_only_search: starting.
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard] enable_private_new_pin: starting.
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard] enable_toread_new_pin: starting.
[2019-10-04T21:10:45Z DEBUG alfred_rs::data] loading from: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/user.workflow.604D78D2-58E9-4711-AE59-8A8DBC2C122C-Rusty_Pin-updater.json
[2019-10-04T21:10:45Z DEBUG alfred_rs::updater] entering init
[2019-10-04T21:10:45Z DEBUG alfred_rs::updater] last check: 2019-10-04 21:09:39.114661 UTC
[2019-10-04T21:10:45Z DEBUG alfred_rs::updater] calling read_last_check_status
[2019-10-04T21:10:45Z DEBUG alfred_rs::data] loading from: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/last_check_status_async.json
[2019-10-04T21:10:45Z DEBUG alfred_rs::updater] read last_check_status: UpdateInfo { version: Version { major: 0, minor: 15, patch: 9, pre: [], build: [] }, fetched_at: Some(2019-10-04T21:05:30.089297Z), downloadable_url: "https://github.com/spamwax/alfred-pinboard-rs/releases/download/0.15.9/alfred-pinboard-rust-0.15.9.alfredworkflow", _priv: () }
[2019-10-04T21:10:45Z DEBUG alfred_rs::updater] status: Ok(None)
[2019-10-04T21:10:45Z DEBUG alfred_rs::updater] successfully set the state of release worker
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::commands::list] Starting in list::process
[2019-10-04T21:10:45Z WARN alfred_pinboard_rs::commands::list] inside spawn thread, about to call get_suggested_tags
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::commands::list] Starting in get_suggested_tags
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] Starting in setup
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_workflow_dirs
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] cache_dir: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] data_dir: /Users/smusz/Library/Application Support/Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] Starting in read
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_alfred_version
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard] pinb::new: calling CachedData::new
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] new: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] cached_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] create_cache_dir: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] success create_cache_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] load_cache_data_from_file: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] read_cached_pins: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] read_cached_tags: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard::cached_data] cache_ok: starting
[2019-10-04T21:10:45Z DEBUG rusty_pin::pinboard] pinb::new: cache not missing
[2019-10-04T21:10:45Z DEBUG alfred_pinboard_rs::commands::browser_info] Starting in browser_info::get
[2019-10-04T21:10:46Z WARN alfred_pinboard_rs::commands::list] get_suggested_tags: Err(ErrorMessage { msg: "osascript error: code exit code: 1" })
[2019-10-04T21:10:46Z WARN alfred_pinboard_rs::commands::list] child didn't produce usable result.
[2019-10-04T21:10:46Z DEBUG rusty_pin::pinboard] search_list_of_tags: starting.
[2019-10-04T21:10:46Z DEBUG rusty_pin::pinboard::cached_data] cache_ok: starting
[2019-10-04T21:10:46Z DEBUG alfred_pinboard_rs::commands::list] Found 3 tags.
[2019-10-04T21:10:46Z DEBUG alfred_pinboard_rs::commands::list] exec_counter: 1
[2019-10-04T21:10:46Z DEBUG alfred_pinboard_rs::commands::browser_info] Starting in browser_info::get
[2019-10-04T21:10:47Z DEBUG alfred_rs::data] saving to: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/bookmark_exists.json
[2019-10-04T21:10:47Z DEBUG alfred_pinboard_rs::commands::list] bookmark found from browser info: false
[2019-10-04T21:10:47Z DEBUG alfred_pinboard_rs::commands] Starting in write_output_items
[2019-10-04T21:10:47Z DEBUG alfred_pinboard_rs::commands] Starting in get_upgrade_item
[2019-10-04T21:10:47Z DEBUG alfred_rs::data] saving to: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/user.workflow.604D78D2-58E9-4711-AE59-8A8DBC2C122C-Rusty_Pin-updater.json
[2019-10-04T21:10:47Z INFO alfred_pinboard_rs::commands] Update UNAVAILABLE
Ok(
false,
)
[2019-10-04T21:10:47Z DEBUG alfred_pinboard_rs::workflow_config] Starting in can_use_json
[14:10:48.861] STDERR: Rusty Pin[Run Script] [2019-10-04T21:10:48Z DEBUG alfred_pinboard_rs] Parsing input arguments.
[2019-10-04T21:10:48Z DEBUG alfred_pinboard_rs] Deciding on which command branch
[2019-10-04T21:10:48Z DEBUG alfred_pinboard_rs] Starting in setup
[2019-10-04T21:10:48Z DEBUG alfred_pinboard_rs::workflow_config] Starting in setup
[2019-10-04T21:10:48Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_workflow_dirs
[2019-10-04T21:10:48Z DEBUG alfred_pinboard_rs::workflow_config] cache_dir: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-10-04T21:10:48Z DEBUG alfred_pinboard_rs::workflow_config] data_dir: /Users/smusz/Library/Application Support/Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-10-04T21:10:48Z DEBUG alfred_pinboard_rs::workflow_config] Starting in read
[2019-10-04T21:10:48Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_alfred_version
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard] pinb::new: calling CachedData::new
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard::cached_data] new: starting
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard::cached_data] cached_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard::cached_data] create_cache_dir: starting
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard::cached_data] success create_cache_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard::cached_data] load_cache_data_from_file: starting
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard::cached_data] read_cached_pins: starting
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard::cached_data] read_cached_tags: starting
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard::cached_data] cache_ok: starting
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard] pinb::new: cache not missing
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard] enable_fuzzy_search: starting.
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard] enable_tag_only_search: starting.
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard] enable_private_new_pin: starting.
[2019-10-04T21:10:48Z DEBUG rusty_pin::pinboard] enable_toread_new_pin: starting.
[2019-10-04T21:10:48Z DEBUG alfred_rs::data] loading from: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/user.workflow.604D78D2-58E9-4711-AE59-8A8DBC2C122C-Rusty_Pin-updater.json
[2019-10-04T21:10:48Z DEBUG alfred_rs::updater] entering init
[2019-10-04T21:10:48Z DEBUG alfred_rs::updater] last check: 2019-10-04 21:09:39.114661 UTC
[2019-10-04T21:10:48Z DEBUG alfred_rs::updater] calling read_last_check_status
[2019-10-04T21:10:48Z DEBUG alfred_rs::data] loading from: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/last_check_status_async.json
[2019-10-04T21:10:48Z DEBUG alfred_rs::updater] read last_check_status: UpdateInfo { version: Version { major: 0, minor: 15, patch: 9, pre: [], build: [] }, fetched_at: Some(2019-10-04T21:05:30.089297Z), downloadable_url: "https://github.com/spamwax/alfred-pinboard-rs/releases/download/0.15.9/alfred-pinboard-rust-0.15.9.alfredworkflow", _priv: () }
[2019-10-04T21:10:48Z DEBUG alfred_rs::updater] status: Ok(None)
[2019-10-04T21:10:48Z DEBUG alfred_rs::updater] successfully set the state of release worker
[2019-10-04T21:10:48Z DEBUG alfred_pinboard_rs::commands::post] Starting in run
[2019-10-04T21:10:48Z DEBUG alfred_pinboard_rs::commands::browser_info] Starting in browser_info::get
I am just getting large letters for pind.
I am following the recommeded path:
I am using Firefox 60.0.1 64-bit.
I'm on OS 10.15.3 and I was getting 'Error: osascript error: code exit code: 1
errors when trying to post urls.
I tracked down the issue to the appIsRunning
function call in get-current-url.applescript
. I removed that conditional for my browser and it works again.
I suspect this is an issue with oascript permissions that has been effecting a lot of Catalina users lately. We need to find the correct permissions to grant or just remove that conditional.
Here is from the debug log:
[15:33:11.373] Logging Started...
[15:33:20.506] Rusty Pin[Script Filter] Queuing argument ''
[15:33:21.369] Rusty Pin[Script Filter] Queuing argument 'w'
[15:33:21.462] Rusty Pin[Script Filter] Queuing argument 'wo'
[15:33:21.670] Rusty Pin[Script Filter] Queuing argument 'wor'
[15:33:21.998] Rusty Pin[Script Filter] Queuing argument 'work'
[15:33:23.737] Rusty Pin[Script Filter] Script with argv 'work' finished
[15:33:23.743] STDERR: Rusty Pin[Script Filter] [2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs] Parsing input arguments.
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs] Deciding on which command branch
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs] Starting in setup
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] Starting in setup
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_workflow_dirs
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] cache_dir: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] data_dir: /Users/smusz/Library/Application Support/Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] Starting in read
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_alfred_version
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard] pinb::new: calling CachedData::new
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] new: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] cached_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] create_cache_dir: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] success create_cache_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] load_cache_data_from_file: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] read_cached_pins: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] read_cached_tags: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] cache_ok: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard] pinb::new: cache not missing
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard] enable_fuzzy_search: starting.
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard] enable_tag_only_search: starting.
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard] enable_private_new_pin: starting.
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard] enable_toread_new_pin: starting.
[2019-08-27T22:33:22Z DEBUG alfred_rs::data] loading from: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/user.workflow.888FA534-8B19-4216-A22F-C373E1C540F8-Rusty_Pin-updater.json
[2019-08-27T22:33:22Z DEBUG alfred_rs::updater] entering init
[2019-08-27T22:33:22Z DEBUG alfred_rs::updater] last check: 2019-08-27 22:32:11.111256 UTC
[2019-08-27T22:33:22Z DEBUG alfred_rs::updater] calling read_last_check_status
[2019-08-27T22:33:22Z DEBUG alfred_rs::data] loading from: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/last_check_status_async.json
[2019-08-27T22:33:22Z DEBUG alfred_rs::updater] read last_check_status: UpdateInfo { version: Version { major: 0, minor: 15, patch: 7, pre: [], build: [] }, fetched_at: Some(2019-08-27T22:32:11.111256Z), downloadable_url: "https://github.com/spamwax/alfred-pinboard-rs/releases/download/0.15.7/alfred-pinboard-rust-0.15.7.alfredworkflow", _priv: () }
[2019-08-27T22:33:22Z DEBUG alfred_rs::updater] status: Ok(None)
[2019-08-27T22:33:22Z DEBUG alfred_rs::updater] successfully set the state of release worker
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::commands::list] Starting in list::process
[2019-08-27T22:33:22Z WARN alfred_pinboard_rs::commands::list] inside spawn thread, about to call get_suggested_tags
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::commands::list] Starting in get_suggested_tags
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] Starting in setup
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_workflow_dirs
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] cache_dir: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] data_dir: /Users/smusz/Library/Application Support/Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] Starting in read
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_alfred_version
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard] pinb::new: calling CachedData::new
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] new: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] cached_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] create_cache_dir: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] success create_cache_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] load_cache_data_from_file: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] read_cached_pins: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] read_cached_tags: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard::cached_data] cache_ok: starting
[2019-08-27T22:33:22Z DEBUG rusty_pin::pinboard] pinb::new: cache not missing
[2019-08-27T22:33:22Z DEBUG alfred_pinboard_rs::commands::browser_info] Starting in browser_info::get
[2019-08-27T22:33:22Z WARN alfred_pinboard_rs::commands::list] get_suggested_tags: Err(ErrorMessage { msg: "osascript error: code exit code: 1" })
[2019-08-27T22:33:23Z WARN alfred_pinboard_rs::commands::list] child didn't produce usable result.
[2019-08-27T22:33:23Z DEBUG rusty_pin::pinboard] search_list_of_tags: starting.
[2019-08-27T22:33:23Z DEBUG rusty_pin::pinboard::cached_data] cache_ok: starting
[2019-08-27T22:33:23Z DEBUG alfred_pinboard_rs::commands::list] Found 3 tags.
[2019-08-27T22:33:23Z DEBUG alfred_pinboard_rs::commands::list] exec_counter: 1
[2019-08-27T22:33:23Z DEBUG alfred_pinboard_rs::commands::browser_info] Starting in browser_info::get
[2019-08-27T22:33:23Z DEBUG alfred_rs::data] saving to: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/bookmark_exists.json
[2019-08-27T22:33:23Z DEBUG alfred_pinboard_rs::commands::list] bookmark found from browser info: false
[2019-08-27T22:33:23Z DEBUG alfred_pinboard_rs::commands] Starting in write_output_items
[2019-08-27T22:33:23Z DEBUG alfred_pinboard_rs::commands] Starting in get_upgrade_item
[2019-08-27T22:33:23Z DEBUG alfred_rs::data] saving to: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/user.workflow.888FA534-8B19-4216-A22F-C373E1C540F8-Rusty_Pin-updater.json
[2019-08-27T22:33:23Z INFO alfred_pinboard_rs::commands] Update UNAVAILABLE
Ok(
false,
)
[2019-08-27T22:33:23Z DEBUG alfred_pinboard_rs::workflow_config] Starting in can_use_json
[15:33:23.766] Rusty Pin[Script Filter] {"items":[{"arg":"Work","autocomplete":"Work","icon":{"path":"tag.png"},"subtitle":"38","title":"Work","variables":{"tags":"Work"}},{"arg":"workday","autocomplete":"workday","icon":{"path":"tag.png"},"subtitle":"1","title":"workday","variables":{"tags":"workday"}},{"arg":"workflow-designer","autocomplete":"workflow-designer","icon":{"path":"tag.png"},"subtitle":"1","title":"workflow-designer","variables":{"tags":"workflow-designer"}},{"arg":"update","icon":{"path":"auto_update.png"},"title":"You have the latest version of workflow!","variables":{"workflow_update_ready":"0"}}],"variables":{"apr_execution_counter":"1"}}
[15:33:24.587] Rusty Pin[Script Filter] Processing complete
[15:33:24.598] Rusty Pin[Script Filter] Passing output 'Work' to Junction
[15:33:24.599] Rusty Pin[Junction] Processing complete
[15:33:24.600] Rusty Pin[Junction] Passing output 'Work' to Filter
[15:33:24.600] Rusty Pin[Filter] Processing complete
[15:33:24.601] Rusty Pin[Filter] Passing output 'Work' to Run Script
[15:33:24.602] Rusty Pin[Junction] Passing output 'Work' to Filter
[15:33:25.357] STDERR: Rusty Pin[Run Script] [2019-08-27T22:33:24Z DEBUG alfred_pinboard_rs] Parsing input arguments.
[2019-08-27T22:33:24Z DEBUG alfred_pinboard_rs] Deciding on which command branch
[2019-08-27T22:33:24Z DEBUG alfred_pinboard_rs] Starting in setup
[2019-08-27T22:33:24Z DEBUG alfred_pinboard_rs::workflow_config] Starting in setup
[2019-08-27T22:33:24Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_workflow_dirs
[2019-08-27T22:33:24Z DEBUG alfred_pinboard_rs::workflow_config] cache_dir: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-08-27T22:33:24Z DEBUG alfred_pinboard_rs::workflow_config] data_dir: /Users/smusz/Library/Application Support/Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs
[2019-08-27T22:33:24Z DEBUG alfred_pinboard_rs::workflow_config] Starting in read
[2019-08-27T22:33:24Z DEBUG alfred_pinboard_rs::workflow_config] Starting in get_alfred_version
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard] pinb::new: calling CachedData::new
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard::cached_data] new: starting
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard::cached_data] cached_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard::cached_data] create_cache_dir: starting
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard::cached_data] success create_cache_dir: "/Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs"
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard::cached_data] load_cache_data_from_file: starting
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard::cached_data] read_cached_pins: starting
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard::cached_data] read_cached_tags: starting
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard::cached_data] cache_ok: starting
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard] pinb::new: cache not missing
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard] enable_fuzzy_search: starting.
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard] enable_tag_only_search: starting.
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard] enable_private_new_pin: starting.
[2019-08-27T22:33:24Z DEBUG rusty_pin::pinboard] enable_toread_new_pin: starting.
[2019-08-27T22:33:24Z DEBUG alfred_rs::data] loading from: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/user.workflow.888FA534-8B19-4216-A22F-C373E1C540F8-Rusty_Pin-updater.json
[2019-08-27T22:33:24Z DEBUG alfred_rs::updater] entering init
[2019-08-27T22:33:24Z DEBUG alfred_rs::updater] last check: 2019-08-27 22:32:11.111256 UTC
[2019-08-27T22:33:24Z DEBUG alfred_rs::updater] calling read_last_check_status
[2019-08-27T22:33:24Z DEBUG alfred_rs::data] loading from: /Users/smusz/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cc.hamid.alfred-pinboard-rs/last_check_status_async.json
[2019-08-27T22:33:24Z DEBUG alfred_rs::updater] read last_check_status: UpdateInfo { version: Version { major: 0, minor: 15, patch: 7, pre: [], build: [] }, fetched_at: Some(2019-08-27T22:32:11.111256Z), downloadable_url: "https://github.com/spamwax/alfred-pinboard-rs/releases/download/0.15.7/alfred-pinboard-rust-0.15.7.alfredworkflow", _priv: () }
[2019-08-27T22:33:24Z DEBUG alfred_rs::updater] status: Ok(None)
[2019-08-27T22:33:24Z DEBUG alfred_rs::updater] successfully set the state of release worker
[2019-08-27T22:33:24Z DEBUG alfred_pinboard_rs::commands::post] Starting in run
[2019-08-27T22:33:24Z DEBUG alfred_pinboard_rs::commands::browser_info] Starting in browser_info::get
[15:33:25.371] Rusty Pin[Run Script] Processing complete
[15:33:25.372] Rusty Pin[Run Script] Passing output 'Error: osascript error: code exit code: 1
' to Junction
[15:33:25.373] Rusty Pin[Junction] Processing complete
[15:33:25.374] Rusty Pin[Junction] Passing output 'Error: osascript error: code exit code: 1
' to Filter
[15:33:25.375] Rusty Pin[Junction] Passing output 'Error: osascript error: code exit code: 1
' to Filter
[15:33:25.376] Rusty Pin[Junction] Passing output 'Error: osascript error: code exit code: 1
' to Filter
[15:33:25.376] Rusty Pin[Filter] Processing complete
[15:33:25.377] Rusty Pin[Filter] Passing output 'Error: osascript error: code exit code: 1
' to Run Script
[15:33:25.436] Rusty Pin[Run Script] Processing complete
[15:33:25.441] Rusty Pin[Run Script] Passing output 'osascript error: code exit code: 1
' to Post Notification
[15:33:25.449] Rusty Pin[Post Notification] Processing complete
[15:33:25.450] Rusty Pin[Post Notification] Passing output 'osascript error: code exit code: 1
' to Large Type
I can't set my token with pa user.name:token
. I'm wondering if it's because my username has a .
in it? Or possibly something else? Unfortunately the error message is in a notification and gets cut off:
I am able to successfully run curl https://api.pinboard.in/v1/posts/all\?format\=json\&auth_token\=your_username:api_token > bookmarks.json
Any other info you need?
Hi
Maybe I'm missing something, but I can't save it if I use p github issue
. However, I can save it with p t
and p github issue;
. See the screencast for a demo. After I type issue
, I keep pressing Enter
and the github
word was removed and then nothing happened even though I keep pressing Enter
.
I think this is only happening if I'm adding new tags at the same time. It works with existing tags. Not sure if this is a bug or something that hasn't been implemented yet.
Workflow:
p newtag newtag
Consider only posting notifications, e.g. after adding bookmark or refreshing caching, if the operation resulted in a error. Makes for few distractions.
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.