Jump to content

zagdul

Member
  • Posts

    16
  • Joined

  • Last visited

Posts posted by zagdul

  1. I created a workflow for using pass. Pass is a very secure but simple to use (kind of) password manager that is heavily depending on shell and commandline tools.

    This workflow helps a bit with working with that manager

     

    Several keywords:

    - pass: search for entries, hit enter to see details and copy fields accordingly
    - pgen: generate a password in a category

    - pinfo: add a path to see details

    - psync: sync your passwords to your repository
    - pb: browse your data

     

    You can get it here: https://caluga.de/file/611fc6740c2f8d0380cce246

     

    https://caluga.de/v/2021/8/20/pass_workflow

     

     

  2. I tried to change the Script so that "in X list" would work with lists in a group. Unfortunately this is _way_ too slow... there is no way of getting the list directly, you have to run through all reminders and get their container. This is also bad, because it would not return names of empty lists.

     

    not a valid way. We need to wait for apple to fix this issue unfortunately

  3. love this great workflow, especially as with catalina the Mac/Ios Reminders-App got some love from Apple! Minor features are missing though. Like taking lists that are stored in a "Group" into account. When adding something to a list, that is not on the top level, it would not work unfortunately.

     

    But other than that, it helps a lot when just using it in your GTD Workflow! Thanks a lot!

  4. so, for some reason, this did not do anything, or caused this error:

     

    Quote

    [2017-10-05 13:55:44][ERROR: action.applescript] {
        NSAppleScriptErrorBriefMessage = "Expected end of line but found identifier.";
        NSAppleScriptErrorMessage = "Expected end of line but found identifier.";
        NSAppleScriptErrorNumber = "-2741";
        NSAppleScriptErrorRange = "NSRange: {380, 5}";
    }

     

    I found, that the error does not occur, if you run the script as standard osascript, not as NSAppleScript

     

    I changed the script as follows:

     

    set q to "{query}"
    set theName to (q)
    set isRunning to false
    
    tell application "System Events"
    	if exists process "OmniFocus" then
    		set isRunning to true
    	end if
    end tell
    
    if isRunning is false then
    	tell application "OmniFocus" to activate
    end if
    
    tell application "OmniFocus"
    	tell default document
    		parse tasks into it with transport text (q)
    	end tell
    end tell

    the corresponding action is "Script", Language "osascript (AS)"  with input as "{query}"

  5. I got it working... the syntax of the parse command changed a bit with omnifocus 2:

    on alfred_script(q)
    	
    	set theName to (q)
    	set isRunning to false
    	
    	tell application "System Events"
    		if exists process "OmniFocus" then
    			set isRunning to true
    		end if
    	end tell
    	
    	if isRunning is true then
    		tell application "OmniFocus"
    			tell default document
    				parse tasks into  with transport text q
    			end tell
    		end tell
    	else
    		tell application "OmniFocus" to activate
    		
    		tell application "OmniFocus"
    				parse tasks into default document with transport text q
    		end tell
    	end if
    	
    end alfred_script
    

    both ways of calling "parse" are shown in the script - just paste it to the script editor. Should work now!

  6. it seems to be working again - just set a different sync folder for once. And restarted alfred - that worked.

    Then I copied the "new" alfred.preferences into the dropbox folder and at least on this machine it still works!

  7. same issue here. on one machine the theme is "forgotten" instantly. Just import the theme, close the option window - theme is shown when displaying alfred.

    Open the options again - theme is gone, default theme shown.

     

    Don't know what could cause this, but dropbox is used for syncing.

  8. Hi,
     
    I created annother simple workflow: This workflow let's you mark the selected email as red,blue... and so on, just type mm0 for red, mm1 for blue, mm2 for... you get the idea.
    Maximum is mm6
    If you want to remove the flag type mm-1
     
    And you can toggle the Junkmail flag with mj

     

    Unfortunately I did not find a way to upload the workflow here, but you can download it from my blog:

    Flag Mail Workflow.alfredworkflow

     
    Have fun...

  9. Thanks for your post, this is WAY more sophisticated than my little script .... really like it and will definitely use it as an inspiration... 

    Problem is - I'm a novice when it comes to AppleScript, just learned the basics to do some things with Alfred 

    hence, my code is a lot simpler than yours, simply because i did not know not know implement it.

  10. Hi,

     

    just wanted to contribute my workflow. I created a simple workflow, that opens ssh connections in new tabs and changes the profile accordingly. So, when connecting to production servers, the terminal window uses profile "Red Sands", "Pro" otherwise.

    You can also switch the current profile with just a simple setting.

     

    If you want to use it, you'd probably need to customize the actions (quite simple, just take a closer look) 

     

     

    I'm trying to get a list of all available profiles via osascript in order to show them in the list, but that did not work out yet...

     

     

    hope this is useful for anyone ;-)

     

    You can download the AlfredWorkflow here: SimpleSSHAndTermWorkflow.alfredworkflow

×
×
  • Create New...