Jump to content

liatmgat

Member
  • Posts

    33
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    liatmgat got a reaction from sashaski in Toggle Do Not Disturb (w/ Yosemite Support)   
    Thanks all! I did a ghetto workaround to make this work with Bartender - I just had the script quit Bartender at the beginning and then start it again at the end. It actually is surprisingly fast, so it seems like it will work for me until someone smart comes up with a real fix.
     
    (I adapted tabacitu's version because I thought it was faster.) Thank you paulw - I leave yours running too so I can tell from the Alfred results whether DND is off or on. But then I run tabacitu's version to toggle it.
    try tell application "Bartender 2" quit end tell end try tell application "System Events" set toggled to false option key down delay 0.1 try click menu bar item "Notification Center" of menu bar 2 of application process "SystemUIServer" set toggled to true end try if not toggled then try click menu bar item 1 of menu bar 2 of application process "SystemUIServer" end try end if option key up end tell tell application "Bartender 2" activate end tell
  2. Like
    liatmgat reacted to deanishe in Help Me Make a Workflow | Display File Size in Large Type   
    You don't need this bit. You get the Finder selection in your AppleScript. 
     
     
    This should do the trick: 
    on roundThis(n, places) set x to 10 ^ places (((n * x) + 0.5) div 1) / x end roundThis on humanSize(bytes) set i to 1 set n to bytes set units to {"B", "KB", "MB", "GB", "TB"} repeat while i < (count of units) and n > 1000 if n > 1000 then set n to n / 1000 set i to i + 1 end if end repeat if i > 2 then set n to roundThis(n, 2) else set n to roundThis(n, 1) end if return (n as string) & " " & (item i of units) as string end humanSize tell application "Finder" set selectedItem to (item 1 of (get selection)) set theBytes to (size of selectedItem) "Size: " & my humanSize(theBytes) end tell Don't ask me how the roundThis() function works.
  3. Like
    liatmgat reacted to RodgerWW in Help Me Make a Workflow | Display File Size in Large Type   
    First, create a new workflow (BLANK)
     
    From top right hit the + button and select "Triggers" - "Hotkey"
    Double click the hotkey trigger, and set your hotkey
    Then for Action, select "Pass through to workflow"
    Then for Argument, select "Selection in OS X"
    Click Save
     
    Again click the + at the top right and select "Actions" - "Run Script"
    Double click on the Run Script and for language select "osascript (AS)"
    Deselect all the Escaping options.
    In the script area paste the following:
    tell application "Finder" set selectedItem to (item 1 of (get selection)) set informationList to {} copy ("Size: " & size of selectedItem & " (" & physical size of selectedItem & ")") to end of informationList end tell Then Save
     
    Then again, click the top right + and select "Outputs" - "Large Type"
     
    Finally connect the Hotkey to the Run Script, and then the Run Script to the Large Type.
     
    NOTE: There are many ways of getting file info, the above shows the exact file size and size on disc as shown when simply using CMD + I on a file.
  4. Like
    liatmgat got a reaction from Subject22 in Show/hide file extensions   
    Thank you!!!
    Best workflow ever! I really appreciate it.
     
    You might want to edit the title of the main post to "Show/Hide file extensions" instead of "Share/hide" because that's a little confusing. I skipped over it when I searched for something like this the first time.
     
    Anyway, thanks a million for posting this workflow.
     
     
  5. Like
    liatmgat reacted to Subject22 in Show/hide file extensions   
    A quick little workflow for showing and hiding file extensions. The workflow works as a file action (one action for showing and one for hiding extensions) and as a keyboard shortcut (for toggling the visibility of the file extensions of the items selected in OS X). 
     

    Download: Show/Hide File Extensions
  6. Like
    liatmgat reacted to frdmn in Toggle Do Not Disturb (w/ Yosemite Support)   
    Adjusted to make it work for non-US langauges:
    tell application "System Events" set toggled to false option key down delay 0.1 try click menu bar item "Notification Center" of menu bar 2 of application process "SystemUIServer" set toggled to true end try if not toggled then try click menu bar item 1 of menu bar 2 of application process "SystemUIServer" end try end if option key up end tell
  7. Like
    liatmgat reacted to Vero in Is there a way to copy the URL when you've pulled up a custom web search?   
    Conveniently, I happen to have exactly the workflow you need then...
     
    https://dl.dropboxusercontent.com/u/5818788/Alfred/Needles%2C%20yarn%20weight%20%26%20crochet%20conversions.alfredworkflow
     
    The workflow contains four keywords, each connected to a page; "needles", "hooks", "crochet" (for UK-US terminology) and "yarn" (yarn weight chart from Ravelry) Change any of the keywords if you've got other more memorable ones.
     
    In the future, if you have any of other frequently used pages (e.g. cast-ons, bind-offs, etc) just add them to the same page by adding a keyword object connected to an Open URL object.
  8. Like
    liatmgat reacted to jdfwarrior in Weather Workflow (with Conditions and Forecast)   
    Updated 3/18:
    NOTE: Set your location again so a default weather unit gets set initially, then change it.
    Removed saving to the Workflow Data folder and actually save IN the workflow folder now. Should fix issue a few users are seeing and also allows syncing weather location.
     
    Download
  9. Like
    liatmgat reacted to jdfwarrior in Faves - Formerly Favorite Folders   
    To expand on what Chase responded...
     
    This is set up to be a result action. So, that being said, find any folder in Alfred via the regular search method or via the file navigation, press the right arrow to display the result actions, and select Add to Favorites.
  10. Like
    liatmgat reacted to jdfwarrior in Faves - Formerly Favorite Folders   
    Formerly called Favorite Folders, now allows you to set any file, folder, or application as a favorite.
     
    A user requested this under the help and questions forum and i really liked the idea of it. I threw it together really quick for them but thought I would share with you guys as well. Not sure if something like this has been made already or not but, here is my rendition of it.
     

     
    The idea is to have a list of items that you access often, saved in a list and easily accessible. Results are actionable, can be opened by pressing Enter, browsed in Alfred by pressing Cmd+Enter, or removed from the Favorites List with Ctrl+Enter.
     
    Download
  11. Like
    liatmgat reacted to 69wpm in Thesaurus   
    Thanks a lot!
     
    Edit: One more thing, the results are often cut off when too long, is there some way to show them all?
  12. Like
    liatmgat reacted to lmartins in Add to Fantastical   
    Based on a previous extension for Alfred 1, made a quick workflow to add reminders to Fantastical:
    http://cl.ly/0c071F2h2K41
     
    It allows the full syntax as it is normally used in the app input.
  13. Like
    liatmgat reacted to antxc in Audio and movie creation using Quicktime   
    Can someone re-up this workflow? Both links are down. 
     
    Thanks in advance.
  14. Like
    liatmgat reacted to MrClaye in Audio and movie creation using Quicktime   
    Hello,
     
    I updated two small extentions from Alfred 1 created by Keir Thomas.
     
    This will allow you to create audio or movie using Quicktime.
     

     
    How to use it ?
    - Type : "makeaudio", "makemovie" or "makescreencast"
    - Hotkey : cmd+alt+m
     
    Download http://db.tt/eQfiIOHr'>here
  15. Like
    liatmgat reacted to aiyo in Send URL   
    I have finally converted my Send URL extension into a workflow.
     

     
    The workflow selects the URL from the frontmost App or a URL from the Clipboard. Supported Apps are:
    Safari Webkit Google Chrome (Beta/Dev/Canary) Camino Opera (and Opera Next) Omniweb  
    You can then send the URL to a variety of Apps
     
    Safari Webkit Google Chrome (Beta/Dev/Canary) Camino Opera (and Opera Next) Omniweb Firefox (and Aurora) iCab Sleipnir Paparazzi! Mail Sparrow Postbox Gmail VLC Adium (as a chat to an online contact) Droplr downforeveryoneorjustme.com and the clipboard  
    The workflow only list the Apps installed on you mac.
    You can download Send URL here:
    https://github.com/aiyodk/Alfred-Extensions/raw/master/AlfredApp_2.x/Send-URL/Send-URL.alfredworkflow
     
    EDIT:
     
    I have updated Send URL.  
    The update fixes a bug where the workflow would not work if the URL contains a '&' and downforeveryoneorjustme.com is not working correctly.
    I have also included options to copy the URL as a HTML or Markdown link (including the page title)
  16. Like
    liatmgat reacted to mattgemmell in Open selected Finder items in an application (keyword)   
    Hi all,
     
    I missed the Alfred 1.x "action" keyword, which I usually used to open the selected Finder items in an app (more often than not Photoshop). So I made an Alfred 2.x workflow to do that.
     
    You can download it here: http://mattgemmell.com/files/open_selected_finder_items_alfred2.zip
     
    Usage is simple:
     
    1. Type the keyword ("fsel" by default, for "Finder selection") then a space.
    2. Type the name of the app you want to use (and/or pick it from the list), and hit Return.
     

     
    Hope someone else finds it useful. Once again, you can download it here: http://mattgemmell.com/files/open_selected_finder_items_alfred2.zip
     
    Cheers,
    Matt Gemmell
    http://mattgemmell.com
    @mattgemmell
×
×
  • Create New...