Jump to content

raguay.customct

Member
  • Posts

    756
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by raguay.customct

  1. Just added flexible bookmarking. It keeps a list and allows you to paste them in markdown link format. Very handy. Give it a try! BTW: You have to run ft:addurihandler first to get bookmarking to work. This adds a URI handler for the ftdoc:// URI. Thanks to Robin Trew for supplying the handler and the AppleScript for generating bookmarks. https://github.com/RobTrew/txtquery-tools/
  2. Uh, found an error. It thinks a down grade is an upgrade: https://www.dropbox.com/s/7l6ktlxz4fojv2s/error.png
  3. I had to turn off error reporting since you use mktime, which is depreciated. I'm running PHP 5.6. Once turned off, it is working fine. Thanks. You can not set the number of backups to zero. I have it one one right now, but zero would be better for me.
  4. Hi, With the recent comments about wanting to add up several time values using the calcutor, I decided to cleanup and give out this handy workflow. I am often needing to add up a series to times in a document. This workflow makes it very easy. Clear the accumulator, select a time value, and hit your hotkey combination you assigned in this workflow. The time will be accumulated. You can show the time in Hr:min:sec format or just plain minutes. Have fun! ta:clear This clears the accumulator ta:showmin Show the accumulated time in just minutes. ta:showhr Show the accumulated time There is a hotkey you need to set for adding the currently selected time. GitHub: https://github.com/raguay/MyAlfred/blob/master/TimeAddingWorkflow.alfredworkflow Packal: http://www.packal.org/workflow/time-adding-workflow
  5. That did it. I have not tried the bundler stuff yet. Nice workflow. I will give it a workout.
  6. It then gives: /Users/raguay/Library/Application Support/Alfred 2/Workflow Data/alfred.bundler-aries/bundler.sh: line 20: [: too many arguments /Users/raguay/Library/Application Support/Alfred 2/Workflow Data/alfred.bundler-aries/bundler.sh: line 20: [: too many arguments 22:22:26 workflow.py:1265 ERROR 'modes' Traceback (most recent call last): File "/Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.9B0CF2BF-6F91-49A4-9159-61EB9F48F9D0/workflow/workflow.py", line 1263, in run func(self) File "test_space.py", line 20, in main print wf.settings['modes'] KeyError: 'modes'
  7. The tutorial on writing this workflow can be read here: http://computers.tutsplus.com/tutorials/start-developing-with-go-on-the-mac--cms-21251 It is a good tutorial on using Google's golang on the Mac.
  8. I can not get it to work. It produces: [ERROR: alfred.workflow.action.script] Code 1: /Users/raguay/Library/Application Support/Alfred 2/Workflow Data/alfred.bundler-aries/bundler.sh: line 20: [: too many arguments 17:58:07 workflow.py:1265 ERROR [Errno 2] No such file or directory: u'/Users/raguay/Library/Application Support/Alfred 2/Workflow Data/alfred.bundler-aries/assets/utility/viewer/default/viewer.app --args/Contents/document.wflow' Traceback (most recent call last): File "/Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.9B0CF2BF-6F91-49A4-9159-61EB9F48F9D0/workflow/workflow.py", line 1263, in run func(self) File "spritzr.py", line 290, in main Spritzr(args[0], wpm, wf).read() File "spritzr.py", line 77, in read self.prepare_viewer() File "spritzr.py", line 151, in prepare_viewer viewer_info = plistlib.readPlist(viewer_plist) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 75, in readPlist pathOrFile = open(pathOrFile) IOError: [Errno 2] No such file or directory: u'/Users/raguay/Library/Application Support/Alfred 2/Workflow Data/alfred.bundler-aries/assets/utility/viewer/default/viewer.app --args/Contents/document.wflow'
  9. Hi, I just made a lot of bug fixes on this workflow and added some external triggers and a PopClip extension that will make use of the external trigger to perform a cleaner on the selected text. One action making use of three programs! Automation at it's best.
  10. I use TaskPaper with my TaskPaper Alfred workflow: http://www.packal.org/workflow/todo-workflow TaskPaper uses plain text files and Markdown for the formatting (but, you do not have to). You can just get FoldingText and use it with the TaskPaper workflow - it allows you to set the editor of choice. I originally created this workflow to use Sublime Text with the ToDo package. If you use FoldingText, use only the ".todo" heading extension in that file. This workflow assumes that the file is only a task list. I also use FoldingText as my general Markdown editor and writing specific todo lists inside the same document. I also have a workflow for working with that program: http://www.packal.org/workflow/folding-text-workflow Between these two, I do not need any other task management software. If I do, I just add it to my workflows and go! Both of these programs are easy to expand and use. Especially FoldingText - it has it's own debugger!
  11. The newer, newer version works good to. I also like the feedback. I mostly use script filters in my workflows just so that I can get feedback easily. Thanks
  12. Not sandboxed, free, yes yours has a lot of advantages. But for the application I used, it did not need timed actions, just interval.
  13. Hi, This new one is about using Alfred Cron as compared to Clockwise. It was a fun tutorial. Check it out! https://computers.tutsplus.com/tutorials/use-a-mac-to-monitor-website-uptime-or-other-regular-tasks--cms-21183
  14. Actually, your actions do not have to be signed. In the indexing rules for actions, you have to turn on the option to only run actions that are signed. So, you can create actions for yourself with no problem. But, to have it on their site they will have to be signed. Makes it unattractive for developers, but okay for personal uses. I'll bet this will push someone to supply unsigned actions on another site.
  15. I believe you can sign it with the free developer account, but that is still too difficult for just anyone to do.
  16. You can run in on the command line if you have Xcode installed: /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift Use the -i flag to interpret the code, no flag compiles it.
  17. Never mind. I figured it out. It was easier than it looked. Starting to get used to AppleScript. But JavaScript and Swift are so much easier!!!
  18. Added it. Thanks. Any thing else? Is it possible to make generic for any browser? I am not too good with AppleScript. Chrome at least?
  19. This workflow is a work in progress. As I come up with more things I want to do with Folding Text program, I will be adding to this workflow. If there is something you would like to see added, just let me know. Most of the functions I found on the FoldingText website and compiled them here for easy use. Just added very flexible bookmarking. Give it a try. ft:autofocus This does the autofocus workflow. Move the todo at the current cursor to the bottom most "# Autofocus.todo" list. It creates one if there is not one. ft:next Find the "@next" todo tag, makes it @done, and sets the next todo as @next. ft:marked Open the current file in Marked.app ft:tagremove Gives a list of tags in the current document and will remove all the ones selected in the list. ft:safari This gets the tabs in the current Safari Web Browser and copies their addresses to the topmost FoldingText document. ft:chrome This gets the tabs in the current Chrome Web Browser and copies their addresses to the topmost FoldingText document. ft:countunfolded This will count all the characters, words, and lines of text that is not folded. Great for geting word counts of an article with all non-essential areas folded away! ft:getvisible This copies all the unfolded text to the clipboard. ft:open This will allow you to open any FoldingText, Markdown, or plain txt files in your home directory. It looks for the ‘ft’, ‘md’, ‘txt’ extensions. ft:gototag This will list every tag in the topmost document. When you select one, all lines without that tag are folded away. Place the cursor in a line and unfold and you are there in the document. ft:openfilelist This will open every file you have in the FoldingText file list. ft:AddFile This file action allows you to place files in to your FoldingText file list. ft:showfiles This shows you every file in your file list. Selecting one will open just that one file, or bring it to the front if it is already open. Select a file with cmd and the file will be taken off the list (but not touched on the HD). ft:docs This gives a list of FoldingText documentation documents you can select and open. ft:addurihandler This adds a system script to handle "ftdoc://" URIs by loading the file specified in FoldingText. It works to launch bookmarks to files and a location in the file. ft:mbkmark This gets a URI for the current cursor location in the topmost FoldingText document and adds it to the bookmark list. You have to supply a name for the bookmark. ft:bookmarks This shows every bookmark and allows you to open it, remove it (function key), or create a markdown link to the bookmark and paste into the topmost application (command key). ft:inbox This allows you to add a message line to the end of a block with the @inbox tag. ft:notetag This one will get a list of tags in the top FoldingText document. The user can select a tag and then give a message. That message will be added to the end of that tag node. Site Layout This is a File Action that you can trigger in the Alfred browser on directories only. When you run it, it creates a file of the directory structure there down with clickable links to each file for FoldingText. You have to have the FoldingText URI handler installed. Once created, it will open the file in FoldingText. This now adds Alfred URI handler action calls to open the directory in Alfred browser and open other files in it's default application. ft:lastsitelayout This will open the last generated site layout from the above command. Set Tag File Directory This sets the current directory in the Alfred Browser to the directory for creating tag search files. Create Tag File This will take the directory in Alfred Browser and search for files with the ft extensions. Those files will be listed with the lines containing the tag set using the ft:setsearchtag command. ft:setsearchtag This is used for the create tag files directory command for the Alfred browser. This command allows you to add or remove tags to search. GitHub: https://github.com/raguay/MyAlfred/blob/master/FoldingTextWorkflow.alfredworkflow Packal: http://www.packal.org/workflow/folding-text-workflow
  20. That is what the documents say. It is just a developers thing. Just like you have to download Xcode to get any compiling tools on your Mac right now.
  21. Okay. I just uploaded to GitHub the fix. I went through all the code and did some cleanup on error condition handling. It should handle defaulting to defaults better now.
  22. The proper order for running it is to set the time record folder first with "atk:setdir". This allows you to set your directory so that it can be in dropbox and used by many systems. It should just default to the Alfred normal data directory. I will check the code for defaulting properly. In the meantime, just use the "atk:setdir" first, then use "atk:addproject" to create your projects, then "atk:project" to set the current project, and "atk:state" to toggle stop/start timing. Just noticed you are running 10.10. I have only tested on 10.9, but it should run fine on 10.10 as well. I am not a registered developer, so I do not have the full preview.
×
×
  • Create New...