Jump to content

alfredappuser

Member
  • Posts

    32
  • Joined

  • Last visited

Contact Methods

  • Website URL
    https://vimeo.com/channels/alfredapp

Recent Profile Visitors

677 profile views

alfredappuser's Achievements

Member

Member (4/5)

1

Reputation

  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))
×
×
  • Create New...