Jump to content

AHaghgoo

Member
  • Posts

    10
  • Joined

  • Last visited

Posts posted by AHaghgoo

  1. Thank you for taking your time and considering this dfay, I really appreciate it.  And yea, I also have my TaskPaper files inside Dropbox so your specific fine tuning would work for me personally.  I've contacted Gianni and linked to this thread so I'm hoping he'll get a chance to see this sometime soon.  

  2. I downloaded the following workflow and have been having trouble using it to indicate the particular TaskPaper file I wish to append tasks to.  

     

    I have corresponded with the developer, Gianni Rondini, but he couldn't find the reason why the Alfred workflow doesn't properly compute and he suggested I come here to see if someone might know what the issue is between the workflow and Alfred. 

     

    I've screencasted the issue and uploaded to

    .  The link to the workflow above explains how it works, but in short, the workflow works when creating a new TaskPaper list, but makes Alfred non responsive when trying to append tasks to a particular file with the '#' preceding the filename.  And unfortunately there is no log in the Console.app that might explain what is going on.  Any consideration on this is greatly appreciated. 

     

    Here's the code for the workflow and I'm on MacOS 10.8.3 using Alfred v2.0.3 (187):

    -- Releas version: 1.1.1
    -- Developed by Gianni Rondini
    -- more info at dropbyte.tumblr.com
    -- send bug and fix requests to
    -- giannivt [at] gmail [dot] com
    
    on alfred_script(evTest)
    set doc to ""
    set prj to ""
    set todo to ""
    set subSep to " sub "
    set inSep to " # "
    set noDoc to 0
    set noPrj to 0
    
    if evTest contains subSep then
    	if evTest contains inSep then -- checking specific document
    		set text item delimiters to inSep
    		set prj_h to text item 1 of evTest
    		set doc to text item 2 of evTest --saving document name
    		set text item delimiters to subSep
    		set prj to text item 2 of prj_h --saving project name
    		set todo to text item 1 of prj_h --saving todo
    	else
    		set text item delimiters to subSep
    		set prj to text item 2 of evTest --saving project name
    		set todo to text item 1 of evTest --saving todo
    		set doc to "toSave" --saving document name
    		set noDoc to 1
    	end if
    else
    	if evTest contains inSep then -- checking specific document
    		set text item delimiters to inSep
    		set todo to text item 1 of evTest --saving todo
    		set doc to text item 2 of evTest --saving document name
    		set prj to "Inbox" --saving project name
    		set noPrj to 1
    	else
    		set prj to "Inbox"
    		set doc to "toSave"
    		set todo to evTest
    		set noDoc to 1
    		set noPrj to 1
    	end if
    end if
    
    if (doc as text) contains " " then
    	set AppleScript's text item delimiters to " "
    	set newText to text items of doc
    	set AppleScript's text item delimiters to "\\ "
    	set doc to newText as text
    end if
    
    tell application "TaskPaper"
    	activate
    	if noDoc is equal to 0 then
    		set p to do shell script "find ~ -iname " & doc & ".taskpaper"
    		if (p as text) contains return then
    			set Applescript's text item delimiters to return
    			set lista to text items of p
    			set p to {choose from list lista}
    		end if
    			
    		if p is not equal to "" then
    			open p
    		else
    			display dialog "Error: " & quote & doc & quote & " file does not exist!" with icon 1 buttons {"Cancel"}
    			return
    		end if
    	else
    		make new document with properties {name:doc}
    		tell front document
    			delete entries
    		end tell
    	end if
    	
    	tell front document
    		if not (exists project named prj) then
    			make new project with properties {name:prj} at front of projects
    		end if
    		tell project named prj
    			make new entry with properties {text line:todo}
    		end tell
    	end tell
    end tell
    end alfred_script
    
  3. Hi Alfred Developers, 

     

    Alfred (2.0.1 [173]) isn't working properly with QS.  When QS is running, there are times — not all the time — that when calling up Alfred with a hotkey, it doesn't remain onscreen.  During those times, hitting the Alfred hotkey, my Mac (10.8.3) switches between full screen apps.  When I quit QS, Alfred remains onscreen, but there are still times when calling up Alfred with the hotkey that my Mac again switches between full screen apps.  

     

    Here's a thirty second video to illustrate: http://f.cl.ly/items/1X131p3y1N3Y330C1t0i/Schizo%20Mac.mov

     

    Thanks for the consideration.  

×
×
  • Create New...