Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by alfredappuser

  1. @Verothanks for you answer. That helps a lot for troubleshooting! I will come up if I found the monster. Maybe something can be done to prevent or at least add that to any documentation, ...
  2. @Vero I found out, that pasting stops if more then one Alfred 3 process is shown within the Activity Monitor of macOS (Aktivitätsanzeige in german): If I kill process with fewer CPU-Time (CPU-zeit in German) pasting from Alfred's paste feature works like a charm! @VeroWhat can we/I do to debug that further? Let me know what I have to do or what I can send you!
  3. @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)
  4. So far the problem must by macOS itself. Using AppleScript: it works Using commands: it doesn't works
  5. 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) 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
  6. hey ctwise, does your workflow work with macOS Sierra? Because I always get an error?
  7. 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
  8. 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?
  9. Hey folks, as a software developer I often use die clipboard history and I know exactly the position of the clipboard history element, which I need. Is it possible (e.g. via alfred workflow) to paste directly the 2nd,3rd,nth clipboard item in the alfred clipboard history? that would be awesome, cheers Josef
  10. 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
  11. I don't have problems. Do you set up your project at google?
  12. 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): create or select a project in the Google Developers Console and enable the API -> I've created a new Project project settings page -> Add my billing informations Add a Browser-API-Key without adding a HTTP-Referrer Added the Browser-API-Key in the workflow 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!!!!
  13. Thanks for updating!!! For everyone else who has problems with the workflow after updating to v1.3: Open filter.php Delete the following code (line 91) $trans = $alphred->get( $query, [ 'useragent' => 'alfredworkflow' ], 2419200, true ); and replace it with the following code $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.
  14. 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
  15. Hey, with your mentioned fix $trans = exec( "ruby -r open-uri -e 'puts open(\"{$query}\") { |io| io.read }'" ); my workflow works now. Maybe it is a problem with the PHP version? (PHP 5.6.12 (cli))
  16. 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?
  17. Does anybody else have problems today with the workflow? I didn't get any translations since an hour.
  18. 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
  19. Thanks for this great workflow! Could you also include a help command, which shows each command example and a short description? Or a static html file which holds the docu which can be open by the help command?
  20. An Alfred 2 workflow that makes an image file for each selected folder in OS X Finder. Feedback and Suggestions are welcome Download here: http://www.packal.org/workflow/folder2iso Please report suggestions or bugfixes at https://github.com/jousch/folder2iso-alfredworkflow
  21. 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
  22. Seems true: https://boards.4chan.org/g/thread/47437080 That's really bad. really really...
  23. For me, any available google translate workflow isn't working anymore. Is it just me?
  • Create New...