spamwax / alfred-pinboard-rs

Alfred Workflow for Pinboard (Rust)
Other
280 stars 13 forks source link

OS X Mojave .. Alfred 4.03 [1092] osascript error #40

Closed skaboy71 closed 5 years ago

skaboy71 commented 5 years ago

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

spamwax commented 5 years ago

Need more info: Which browser you are using? Is your browser open and the active window when you try to use this workflow to post a bookmark?

waynehoover commented 4 years ago

I'm getting the same error. Catalina on all browsers, firefox, brave and chrome.

jkp commented 1 year ago

On my system I tracked this down to the fact that "System Events.app" (from /System/Library/CoreServices/) was not running for some reason. Opening the app (which is a low-level helper service) manually solved the problem. Probably a reboot would too but I didn't want to down my machine if I could avoid it.

HTH someone else in the future.