Jump to content

alfredappuser

Member
  • Posts

    32
  • Joined

  • Last visited

Posts posted by alfredappuser

  1. @Vero thanks for you advices

     

    - The Compatibility Mode does many weird stuff. I was not able to use Alfred, every Alfred Shortcut command freezes the app. So I've disabled it.

    - I disabled macOS's Handoff (the universal clipboard foo) && Bartender v3

     

    So far I have no troubles with pasting..

     

    Beside that, I have troubles with one workflow which stops working after some time. BUT after killing all (mostly 3) Alfred processes and restarting Alfred 3.app the workflow works again.

    So my question is, does this maybe have something todo with Alfred itself? (Here's the link to the affected issue https://github.com/shawnrice/alfred-translate-api/issues/3)

  2. Hi, I'm using the

    - latest stable Alfred

    - in macOS 10.13.2 (german locale)

     

    I'm a webdeveloper and use tools like iTerm, PhpStorm, Mail, Spotify, Git-Tower, Parallels, iA Writer, Finder, Adobe Apps, Bartender, 1P, DropBox, Flexiglass (Move/size windows), FantastiCal, Chrome, TextExpander...

     

    Problem: I'm heavily using the clipboard history of Alfred which works after a restart for a different amount of time. (some minutes mostly). After that pressing enter on a selected clipboard item does copy the item into the clipboard but the former window could not be activated, so it feels like the pasting process doesn't paste it directly in the target application. No matter if PhpStorm, iA Writer, Chrome, ... I always have to click with the mouse into the target field, input, .. and paste it manually with cmd+v.

     

    I don't know if it has something to do with it, but it's like that the mentioned pasting functionality stops working when any custom workflow does also not work anymore like https://github.com/shawnrice/alfred-translate-api/issues/3. I enter the keyword, press space, start to write the argument and booom.

     

    Here's a screenshot of the  Konsole app which is filtered to "Alfred". Each time I try to paste a line appears. (I tried it twice, therefore 2 log entries)

    image.thumb.png.da41501f2002fa4fd9874d021a6096b0.png

     

    An here's another log entries which shows the macos handoff feature logs:

     

    standard    06:51:16.762464 +0200    pboard    Sending pasteboard update to server: <private>
    standard    06:51:16.762511 +0200    pboard    [Local Pasteboard] Adding alias: public.text for type: public.utf8-plain-text
    standard    06:51:16.762862 +0200    useractivityd    [PBOARD CONTROLLER] Got type update from client, gen: 26, <private>
    standard    06:51:16.764214 +0200    useractivityd    DETERMINE: 12345-123456-2345-23456/<private> as the current item-to-advertise.
    standard    06:51:16.816574 +0200    pboard    Sending pasteboard update to server: <private>
    standard    06:51:16.816651 +0200    pboard    [Local Pasteboard] Adding alias: public.text for type: public.utf8-plain-text

     

    I'm really not sure what can be the problems. It's really hard to live with the problem.

     

    Do you have any suggestions/hints how I can debug or get more details about my problem?

     

     

    cheers,

    Josef
     

     

  3. Just now, deanishe said:

     

    Please don't post questions about random workflows in this forum. Go to the Share Your Workflows forum and post your issue in the thread for the workflow that isn't working.

     

    There's no guarantee the author of the workflow will see the post in this forum (they only get pinged for threads they've posted in) and you haven't even said which workflow(s) you're talking about…

     

    If you need help with a workflow, please follow the instructions here:

    That will give you the best chance of getting help.

     

     

    Thanks, but I don't want ask about a specific workflow. I already tried writing my own with some workarounds. But nothing helps. But, yes, I can post also in specific workflow threads. Thanks Deanishe

  4. Hi,

     

    do anybody has a solution for this problem:

     

    every alfred workflow which worked pretty well with macOS El Capitan stopped working since I updated to macOS Sierra. I always getting dialog with info that IPSec certificate (Shared Secret) is missing. (But the connection works, if I start it via mouse in the icon dock top right of macOS display.

     

    Does anybody have same tips for me?

     

    image.png.d67a0ff7e7c3da1bb0f5c80a827eff46.png

  5. I'm actually creating a workflow for the TYPO3 community http://www.typo3.org(an open source cms system) which should add features like

     

    • Open TYPO3 backend in a new tab,
    • Open TYPO3 install tool in a new tab.

     

    Therefore my script already supports Chrome and Safari. 

     

    My problem is, that the safari tab isn't created after my current tab. It seems it isn't possible to changing The index value of a tab.

     

    Is there any possibility to make this working with a workaround?

     

     

    thx

    Jousch

     

    This is my actual script:

    on alfred_script(q)
    
    global backendPathSegment
    set backendPathSegment to "/typo3/index.php"
    
    tell application "System Events" to set frontApp to name of first process whose frontmost is true
    
    
    
    # SAFARI/WEBKIT
    if (frontApp = "Safari") or (frontApp = "Webkit") then
    	using terms from application "Safari"
    		tell application frontApp to set currentTabUrl to URL of front document
    		set currentTabUrl to currentTabUrl & backendPathSegment
    		tell application frontApp to set currentTabIndex to index of current tab of front window
    		set newTabindex to currentTabIndex + 1
    		tell application frontApp
    			tell front window
    				set current tab to (make new tab with properties {URL:currentTabUrl})
    			end tell
    		end tell
    	end using terms from
    	
    	
    	# CHROME
    else if (frontApp = "Google Chrome") or (frontApp = "Google Chrome Canary") or (frontApp = "Chromium") then
    	using terms from application "Google Chrome"
    		tell application frontApp to set currentTabUrl to URL of active tab of front window
    		tell application frontApp to set currentTabTitle to title of active tab of front window
    		tell application frontApp to set n to active tab index of front window
    		tell application frontApp to set myTab to make new tab at after tab n of front window with properties {URL:currentTabUrl & backendPathSegment}
    	end using terms from
    	
    	
    	
    	# ELSE (Firefox has no applescript support to my knowledge)	
    else
    	return "You need a supported browser as your frontmost app"
    end if
    
    end alfred_script
    
  6. The workflow with the official API is no longer working for me:

     

    [sTDERR: alfred.workflow.input.scriptfilter] [09:56:21][filter.php:86][ERROR] Request completely failed, and no cached data exists. cURL debug information follows:

    [09:56:21][filter.php:86][ERROR] cURL error number: 22

    [09:56:21][filter.php:86][ERROR] cURL error message: `The requested URL returned error: 403 Forbidden`.

     

     

     

    I don't have problems. Do you set up your project at google?

  7. Okay, so if you look here: http://www.packal.org/workflow/translate-api, you'll find a new copy of this workflow that uses the paid translation API. It seems to work just fine with my tests. You'll have to get an API key from Google.

     

    The workflow has a different bundleid, so it won't replace the old one, and the keyword for this one is just "tr".

     

    I changed the behavior so that it outputs only one language at a time so that you don't pay for what you don't need. Also, the workflow is setup so that translations are cached for about a month, so if you keep translating the same word over and over, it won't actually hit the Google API after the first time.

     

    Lastly, the "speak" action was taken out because that was also part of the unofficial API that is no longer working. I'll see if I can get that back in there sometime.

     

    Hey Shawn!

     

    Thank you for your new workflow. If anybody else have problems with setting up an API key (basically I've followed https://cloud.google.com/translate/v2/getting_started?hl=en#setup):

     

    1. create or select a project in the Google Developers Console and enable the API -> I've created a new Project
    2. project settings page -> Add my billing informations
    3. Add a Browser-API-Key without adding a HTTP-Referrer
    4. Added the Browser-API-Key in the workflow
    5. I had to wait a few minutes, after my api-key was accepted when trying to translate something. (The best thing is to debug the workflow within alfred app -> after a few minutes waiting the 403 forbidden error was gone.)

    @Shawn: Is it possible to enable more language at the same time - as it was in the "previous" workflow which don't used the translate API? I often translate DE>EN and EN>DE. Or maybe a 2nd keyword which translates the 2nd configuration.

     

    Thanks for the new workflow!!!!

  8. The hotkey is a neat idea. I just added it to the workflow and push an update (1.3) to Packal.

     

    Also, I rewrote getting / fetching mechanisms that should work with all versions. The configs did change a little bit, so you might have to reset them.

    Thanks for updating!!!

     

    For everyone else who has problems with the workflow after updating to v1.3:

     

    1. Open filter.php
    2. Delete the following code (line 91) 
      $trans = $alphred->get( $query, [ 'useragent' => 'alfredworkflow' ], 2419200, true );
      

      and replace it with the following code

    3. $ch = curl_init( $query );
      curl_setopt( $ch, CURLOPT_USERAGENT, 'alfredworkflow' );
      curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
      $trans = curl_exec( $ch );
      curl_close( $ch );
      

      and you should be done.

  9. The workflow breaks also when installing another global php version (e.g. with homebrew). I had to fix the workflow with your proposed one-liner-fix.

    PHP 5.6.13 (cli)
    

    I have another question regarding your nice workflow: Is it possible to trigger the workflow with a hotkey? I've tried some combinations but I didn't get it done. My desired workflow would be: select some text -> press a shortcut -> fires up trans workflow with the selected text

  10. Hi,

     

    I don't know if it helps, but I'm syncing my workflows with Dropbox between 2 macs. The funny thing is, that it works on one of them. On the other I get

    [ERROR: alfred.workflow.input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 4.)'. Row (null), Col (null): 'Document is empty' in XML:
    Warning: file_get_contents(http://translate.google.com/translate_a/single?client=json&ie=UTF-8&oe=UTF-8&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&dt=at&q=good+morngin+&hl=en&sl=auto&tl=de): failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable
     in /Users/foobar/Dropbox/ManualSync/Alfred/Alfred.alfredpreferences/workflows/user.workflow.67348FF0-C5F5-47B8-8E83-BB06E9815B44/filter.php on line 58
    
    Warning: Invalid argument supplied for foreach() in /Users/foobar/Dropbox/ManualSync/Alfred/Alfred.alfredpreferences/workflows/user.workflow.67348FF0-C5F5-47B8-8E83-BB06E9815B44/filter.php on line 67
    
    Warning: file_get_contents(http://translate.google.com/translate_a/single?client=json&ie=UTF-8&oe=UTF-8&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&dt=at&q=good+morngin+&hl=en&sl=auto&tl=en): failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable
     in /Users/foobar/Dropbox/ManualSync/Alfred/Alfred.alfredpreferences/workflows/user.workflow.67348FF0-C5F5-47B8-8E83-BB06E9815B44/filter.php on line 58
    
    Warning: Invalid argument supplied for foreach() in /Users/foobar/Dropbox/ManualSync/Alfred/Alfred.alfredpreferences/workflows/user.workflow.67348FF0-C5F5-47B8-8E83-BB06E9815B44/filter.php on line 67
    
    Warning: file_get_contents(http://translate.google.com/translate_a/single?client=json&ie=UTF-8&oe=UTF-8&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&dt=at&q=good+morngin+&hl=en&sl=auto&tl=fr): failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable
     in /Users/foobar/Dropbox/ManualSync/Alfred/Alfred.alfredpreferences/workflows/user.workflow.67348FF0-C5F5-47B8-8E83-BB06E9815B44/filter.php on line 58
    
    Warning: Invalid argument supplied for foreach() in /Users/foobar/Dropbox/ManualSync/Alfred/Alfred.alfredpreferences/workflows/user.workflow.67348FF0-C5F5-47B8-8E83-BB06E9815B44/filter.php on line 67
    <?xml version="1.0"?>
    <items><item arg="" valid="yes"><arg></arg><title></title><subtitle>German: good morngin </subtitle><icon>icons/de.png</icon></item><item arg="" valid="yes"><arg></arg><title></title><subtitle>English: good morngin </subtitle><icon>icons/en.png</icon></item><item arg="" valid="yes"><arg></arg><title></title><subtitle>French: good morngin </subtitle><icon>icons/fr.png</icon></item></items>

    is this a problem when syncing with Dropbox or has it something todo with PHP version?

  11. I've configured Alfred to open the Alfred bar on the display, where my mouse pointer is located. If I search a contact and open it within Alfred and press CMD+L for displaying selected value (e.g. telephone number) the large type is shown on my "main display" (in this case another).

     

    Would be nice if this could be implemented or configurable

     

    cheers

  12. Hi,

     

    I'm actually finishing my upcoming qrencode workflow which show qrcode image which are generated offline (without the help of the google charts api).

     

    For this I rely on "qrencode" which can be installed through homebrew.

     

    What I didn't understand is, that the workflow didn't know "qrencode" if I call it without the absolute path to it. This is only within alfred workflow. In a typical shell script it work (outside of Alfred).

     

    Therefore I try to get the full path to the binary with:

    bin=$(`type -p qrencode`)
    

    to call it afterwards with

    $bin <commandoptions>
    

    The debug informations show me only "[ERROR: alfred.workflow.action.script] /bin/bash: line 5: -o: command not found"

     

     

     

    Do anybody have some tipps for me to get this working?

     

    thx

×
×
  • Create New...