Jump to content
Tito

Tweet Workflow?

Recommended Posts

Hi!

 

I was a happy user of AlfredTweet in V.1, seems it hasn´t developed in version 2.

 

If somebody knows a way to do a workflow I would be very pleased.

 

Thanks!

Share this post


Link to post

I couldn't setup this workflow, I am getting this error - http://d.pr/i/2mB

 

There may be something wrong with your default php installation. The curl extension for PHP should be available in the default PHP installation with whatever version of OSX you have.

Share this post


Link to post

As of March 2019, this workflow still works as expected from El Capitan all the way to macOS Mojave. :) 

 

If you're having any issues with the workflow, please ensure that you check the debug log, and provide details of the errors so that we can help you further.

 

Cheers,
Vero

Share this post


Link to post

I authorise the app when prompted and then nothing happens.

 

Anyone that can test this today and share a fix ?

 

Thanks.

Share this post


Link to post

@polle Could you please take a look at the debug log to see whether it reports any errors?

 

Which version of Alfred, macOS and the workflow are you using?

 

Also, on the Twitter website, if you go to your settings > Apps, is AlfredTweet now added as an app with permissions?

 

The more information you can provide, the easier it'll be for us to help you, as this workflow should still be working fine :)

 

Cheers,
Vero

Share this post


Link to post

Sure, here is the info.

Alfred: 3.8.1

macOS: Mojave 10.14

Log:

Starting debug for 'AlfredTweet'

[2019-04-30 10:49:00][input.keyword] Processing output of 'action.script' with arg ''
[2019-04-30 10:49:00][action.script] Processing output of 'output.notification' with arg 'Continuing login at AlfredTweet home page.'

1- Setup Alfred Tweet

2- Authenticate (http://alfredtweet.dferg.us)

3- Authorise (twitter.com)

4- Page returns to authenticate (oauth_token and oauth_verifier in URL)

5- Nothing happens...

 

Thanks for your help.

Share this post


Link to post

I changed default browser to other than Safari and now the code shows up, copy code then: "alfredtweet" "space" "paste" "enter" = Settings saved. AlfredTweet is ready to go!

Now it works!

This in the log:
 

[2019-04-30 11:04:08][input.scriptfilter] <?xml version="1.0"?>
<items><item uid="tweet" arg="Alfred tweet test 2!" valid="yes"><title>Tweet: Alfred tweet test 2!</title><subtitle>Remaining: 120. Press Cmd+Enter to send.</subtitle><icon>icon.png</icon></item></items>
[2019-04-30 11:04:12][input.scriptfilter] Processing output of 'action.script' with arg 'Alfred tweet test 2!'
[2019-04-30 11:04:13][ERROR: action.script] mkdir: /Users/user/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data: No such file or directory
mkdir: /Users/user/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data: No such file or directory
[2019-04-30 11:04:13][action.script] Processing output of 'output.notification' with arg 'Tweeted: Alfred tweet test 2!'

Is that something that needs to be fixed?

 

Also, it asks for command + enter to send, is there a way to change that to only enter?

 

Thanks.

Share this post


Link to post
1 hour ago, polle said:

Is that something that needs to be fixed?

 

Well you can see from the log that it's trying and failing to save its data to an old Alfred 2 directory that doesn't exist.

 

Try running this command in Terminal and see if the workflow works then:

 

mkdir -p ~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow\ Data

 

 

Share this post


Link to post
Posted (edited)
5 hours ago, deanishe said:

 

Well you can see from the log that it's trying and failing to save its data to an old Alfred 2 directory that doesn't exist.

 

Try running this command in Terminal and see if the workflow works then:

 

mkdir -p ~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow\ Data

 

 

Thank you.

 

It actually works, but the error shows up in the log.

Anyone else can confirm this happens in the log?

Edited by polle

Share this post


Link to post
28 minutes ago, polle said:

Anyone else can confirm this happens in the log?

 

It will be happening to everyone who doesn’t still have their old Alfred 2 directory.

 

Older workflows had to hardcore their data and cache directories. They then often broke on systems that no longer had the old directories.

 

It breaks some workflows more than others, but if the workflow is trying to create its cache directory, it likely also wants to use it.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...