raguay.customct

Member
  • Content count

    638
  • Joined

  • Last visited

  • Days Won

    9

raguay.customct last won the day on January 26

raguay.customct had the most liked content!

About raguay.customct

  • Rank
    Advanced Member

Contact Methods

  • Twitter
    @CustomCT
  • Website URL
    http://customct.com

Profile Information

  • Gender
    Male
  • Location
    Tak, Thailand
  • Interests
    preaching, programming, tatting, crocheting, and knitting!

Recent Profile Visitors

2,109 profile views
  1. Okay. I've been using Scriptarian, but I can't get it to produce stack binaries.
  2. Thanks. It is working now. What framework are you using for the automation. I love that it is getting services too!
  3. I've found this script to work better. If you don't have the application, the above scripts will not work as well. This script doesn't stop working if you don't have one of the applications. I've also have other file managers in the list. This is what I use for my Alfred Browser workflow. on pathFinderFile() set appname to "Path Finder" tell application appname set pathfinderselection to selection if pathfinderselection is missing value then display dialog "Nothing selected" buttons {"Oh, crud..."} default button 1 return end if set pathfinderpaths to "" repeat with i from 1 to count of pathfinderselection set pfItem to item i of pathfinderselection -- Corrects for error when hidden files are showing try set currentpathfinderpath to (POSIX path of pfItem) set pathfinderpaths to pathfinderpaths & space ¬ & quoted form of currentpathfinderpath end try end repeat return currentpathfinderpath end tell end pathFinderFile on finderFile() set appname to "Finder" tell application appname try set filep to selection as alias list set finderSelection to POSIX path of filep on error display dialog "Nothing selected" buttons ¬ {"Curses, foiled again!..."} default button 1 return end try end tell return finderSelection end finderFile on commanderOneFile() set appname to "Commander One" tell application appname to activate tell application "System Events" keystroke "c" using {command down, control down} delay 0.5 end tell return the clipboard end commanderOneFile on fmanFile() set appname to "fman" tell application appname to activate tell application "System Events" key code 103 delay 0.5 end tell return the clipboard end fmanFile set fileName to "testing" set frontmostProcessName to "name" tell application "System Events" set frontmostProcess to first process where it is frontmost set frontmostProcessName to name of frontmostProcess as text end tell if frontmostProcessName is "Finder" then set fileName to finderFile() else if frontmostProcessName is "Path Finder" then set fileName to pathFinderFile() else if frontmostProcessName is "Commander One" then set fileName to commanderOneFile() else if frontmostProcessName is "fman" then set fileName to fmanFile() end if return fileName
  4. You need to recompile using static linking. It's requiring a dynalib that I don't have: Code 6: dyld: Library not loaded: @rpath/libswiftAppKit.dylib Referenced from: /Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.85FE278A-FF20-4A2A-919E-8DE7DC7D1C62/./menu Reason: image not found
  5. First, install Hammerspoon. Then run "hs:install" in the Alfred prompt. Whatever hotkey you assigned Alfred to, press that. The default is <command>+space. You should then be able to use the rest of the commands in the workflow. Have fun!
  6. Yes, I split up the repository to Afred 2 and Alfred 3. Here is the link to the latest: https://github.com/raguay/MyAlfred/blob/master/Alfred 3/TextSoapCleaners.alfredworkflow You can see all of the workflows at https://github.com/raguay/MyAlfred/
  7. Here is a quick and easy workflow to do what you want. You will have to assign the hotkeys for each one. It allows you to either open the current OSX selection or clipboard in either chrome, firefox, or safari. You can get it here: https://www.dropbox.com/s/8kkpcjbzr2sde05/Open URL with hotkey.alfredworkflow?dl=0 Examine it and you will see that it is very easy to create workflows like this. There was no programming involved. So, go and experiment.
  8. The workflow works great on Alfred 2 or Alfred 3. The latest version with things for Alfred 3 only can be downloaded from my GitHub account: https://github.com/raguay/MyAlfred/blob/master/Alfred 3/HammerspoonWorkflow.alfredworkflow. It is often easiest to download the whole repo and load the workflow you want to use. I'm not sure which version is on Packal right now (I haven't had time to update it there yet).
  9. The website does that automatically. It'n not suppose to on code blocks, but it does. I've requested the fix several times. But, you can get the files from the download. I always use a TextSoap cleaner to fix them.
  10. Just to let you know, my latest Alfred tutorial is now live: https://computers.tutsplus.com/tutorials/exploring-alfreds-latest-features--cms-27910
  11. I've been experimenting with a new theme and found these funnies. The rounded corner doesn't work for every situation. Some of the corners are still square for different areas (Alfred prompt, Alfred prompt with incomplete keyword, Alfred file browser, and Alfred's clipboard menu).
  12. Okay. I testing with a similar setup. It must be an interaction with some other program. I just closed every program other than Alfred (well, the best I can). It seems to work that way. There must be a program I've updated about the same time Alfred updated. Actually, I believe most of my program has updated. I'll track down the program that is interfering and give them a yell. Sorry, I just assumed it was the update since it happened at the same time. My bad.
  13. I just did a plain input box connected to a clipboard and the line set to ctrl. It doesn't post to the clipboard at all and shows absolutely nothing in the debugger. Therefore, you should be able to test it with that.
  14. Sorry. Been a little busy. I can't get the console or debug unit to show anything. This is a workflow I use everyday since Alfred 2 first edition when I wrote it. I haven't changed anything on it since Alfred 3.0 when I updated the scripts to use the environment variables. You can download it from my GitHub account: https://github.com/raguay/MyAlfred/blob/master/Alfred 3/s3cmdToolkit.alfredworkflow The s3c:list command lists all of the folders on Amazon S3 that it is setup for. When you select ctrl on one of them, it give the web address which it simply calculates with the S3 header address assigned and the name of the bucket in question. The script simply connects them together in a string and sends to a "Clipboard" block to put in the clipboard. Everything goes to the script, but nothing goes to the clipboard box and nothing is shown on the debugger. The 4 other lines seem to work, but the one with ctrl doesn't. I can't get the debugger to show anything at all. Since it was working fine before this version, I was assuming it had something to do with this build. Richard
  15. It is working for me, but this version has some of my workflows not working. My s3cmd workflow quit copying an output of a script to the clipboard. The debugger shows nothing coming out of the script box, but the script box unconnected to anything does have the proper output. Very weird.