Jump to content

Cliff

Member
  • Posts

    27
  • Joined

  • Last visited

Everything posted by Cliff

  1. yes, still happening. do I just have to move my preferences out of Dropbox?
  2. I added the Dropbox offline mode and will let you know if it happens again
  3. The Clipboard History > Viewer Hotkey is Cmd+Shift+C even when set to something different.
  4. Just did the first restart in a while and it happened again, ugh
  5. thanks for confirming the default behavior after restarting Alfred... so the only issue is that the original issue happened again upon computer restart, which I haven't yet done again since my previous message.
  6. Haven't restarted my computer in a couple days but it just happened again... saw there was an Alfred update, did it, then the issue went away... then I opened Alfred search bar and hit up arrow to see what I typed previously and it wasn't there, none of the history... not sure if that's a bug or part of the normal update experience
  7. It was happened for both Paste app (SetApp) and Copy 'Em app (Mac App Store) over the past months. Today, I updated macOS from 13.5 to 13.5.1 Upon restart, it hasn't yet happened (1 attempt). I'll update this ticket if it happens again. tyvm for all the quick help!
  8. v5.1.2 [2145] The Viewer Hotkey is under Clipboard History, not Snippets.
  9. I prefer another clipboard history manager and set its hotkey to Cmd+Opt+C, which is either what the default from Alfred is or is what I previously had assigned in Alfred. Every so often upon a fresh computer startup, Alfred's Snippets (part of Clipboard History if I'm not mistaken) appear instead of my other clipboard app. It works to go to Alfred Preferences > Clipboard History > Viewer Hotkey > set it to anything else However, even after doing so and doing subsequent rebooting of the computer, Cmd+Opt+C still pops up Alfred. Going to Alfred's preferences, I see my Viewer Hotkey looks to still be set to something different, but if I re-record the Viewer Hotkey, then the issue is again resolved.
  10. @deanishe thank you! It worked However, when I change it from "with input as argv" to "with input as {query}" (and changed your code to either $gross = {query}; or $gross = "{query}"; then it wouldn't work. Where is documentation for this? I didn't find these specifications at https://www.alfredapp.com/help/workflows/ For example, what else is available within the $argv array?
  11. @giovanni tyvm but is there any way to stick with PHP so I can be comfortable editing further and to learn for other snippets? In PHP, I tried both `return` and `echo` of JSON and it didn't work like your script did I want the result to pass through to the clipboard action so I can auto-paste
  12. I just want to enter "pfee 100" to get "3.2" entered into my clipboard (100 x 2.9% + 0.30) agh! Here's my 4min demo video of how/why it's not working if you could PLEASE help: https://share.getcloudapp.com/NQuwnnr2 And the start of my workflow is here: https://share.getcloudapp.com/llu5eeEE tyvm!
  13. Published to https://github.com/cliffordp/alfred-app-workflows#development if it helps anyone else in the future Again, thanks to you people for helping!
  14. I had a different filter in the middle and I guess deleting it made it connect further down the road - or, more likely, I didn't initially connect it properly anyway. ugh - not on my game with this one My regex and vitor's regex both worked, but I did appreciate your explanation of the rule - it does sound better - although the plus is better than asterisk, as demonstrated here (not matching double slash): https://regex101.com/r/wvT3FC/1 I didn't add the $1 as a replacement because I do want it removed Thanks for the help and the tips. Really appreciate it!
  15. OMG, the simplest things... tyvm! Here's some regex testing that matches what I want: https://regex101.com/r/UeGzX3/1 However, it requires escaping forward slashes yet http://userguide.icu-project.org/strings/regexp seems to not require doing so (so I didn't in my workflow) Workflow that actually works now except for the regex matching - and interestingly not showing up in debugger: https://cl.ly/5acd6e68fdb1
  16. I want to copy something like wp-content/plugins/event-tickets/tests/restv1/TicketNotAccessibleCest.php and convert it to codecept run tests/restv1/TicketNotAccessibleCest.php and paste it the "event-tickets" part is variable, which is why I used regex to match \w When I run with debugging on, it's like the Clipboard (what I think should be {query}) is blank. Screenshot: https://cl.ly/120d35b1fd91 Is that a bug or an error in my workflow? Workflow is here: https://cl.ly/005392a2a9cd Thanks for helping!
  17. I've read this before. I really only do WordPress, and I like it that way... although someday I may not. I dunno. But thanks again!
  18. @deanishe, that solved it for me! I had never used system() before. I updated the gist with the working code and provided a downloadable Alfred Workflow there. I feel empowered! (Although I'm impressed with Ruby's brevity!) Thanks to both of you!!!
  19. Well I tried this in Alfred's PHP scripting and it didn't do anything: https://gist.github.com/cliffordp/a0ce681f51504649cd75cc9c22a53b2a (the opening PHP tag is there only to enable syntax highlighting; it's not actually added in my script) I'd guess that the syntax for PHP is the same as your Ruby because of PHP's system(). I also tried exec() and passthru() but none of these 3 worked. If someone could please advise how-to in PHP, I'd surely appreciate it just for learning's sake. However, @vitor, you've been a great help. Thank you so much for that.
  20. Thank you very much. It worked! However, I see there's no longer any regex logic to remove non-numeric characters. For example: "12345,281928" works fine "12345, 281928" does not work (does not build a valid URL) because of the leading space in the 2nd item ("281928", not " 281928") "12c345,281928" typo with "c" character in first item (should result in numbers only: "12345") Would you be able to include that in there for me please or explain what I should add? Also, does Alfred's PHP not have functionality to open the browser like your Ruby script does? Thanks!
  21. I have a workflow (download it here: https://cl.ly/3C0n0e1n3W2N) that works and allows me to select some text like "12345" and use a hotkey to launch a URL of https://example.com/issues/{query} -> https://example.com/issues/12345 However, I want to enhance it to be able to support selecting text like "12345,281928", do the hotkey, then open two browser tabs: {query} -> A = 12345 B = 281928 1: open https://example.com/issues/12345 2: also open https://example.com/issues/281928 last one? then we're all done. I know PHP well so I could do explode( ',' {query} ), but I'm not sure how to use {query} (is it usable in a PHP script?) and I'm not sure how to tell it to loop through all the items in the array. If Alfred can't use PHP to do this, that's fine, but I'm not well versed in bash, AppleScript, and the rest. Thanks for any help!
×
×
  • Create New...