Jump to content

jarhead

Member
  • Content Count

    59
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    jarhead got a reaction from thanasut in Create new task in OmniFocus inbox   
    For those having issues, download this version of the workflow: New OmniFocus Inbox Task.alfredworkflow
     
    It is the same version provided by khit but with the modified Applescript provided above.
     
    If you still encounter issues, make sure to delete the prior version of the workflow before installing this version.
  2. Like
    jarhead got a reaction from Yuri in Google Chrome Tab Search (Workflow)   
    This one does Safari & Chrome (and other webkit browsers)...
  3. Like
    jarhead reacted to paulsri in AirPods Audio Source Selector   
    Since getting the AirPods, I wanted to be able to switch between them and the default audio device(s) with Alfred.
     
    And I wanted to change both the input and output devices to the AirPods and back. e.g. avoiding the state of input = Built-in Microphone, while output = AirPods.
     
    Usage is pretty simple with the default being to enable the AirPods:
     
    airpods or 
    airpods on or
    airpods blah and to disable the AirPods or revert back:
    airpods off More detailed setup and configuration as well as dependencies and code are here:
     
    https://github.com/paulsri/alfred-airpods-selector
     
  4. Like
    jarhead got a reaction from CarlosNZ in Tiny PNG workflow [Updated to v1.2]   
    You don't need to go to tinypng_config in the workflow... just start typing tiny into Alfred and you will be provided with three options. One option will be "Enter/Change API Key". Choose this option and it will prompt for your API key. Paste your key, hit return and you should be good to go.
  5. Like
    jarhead got a reaction from Carlos-Sz in Screenshots 1.1: capture, save to Dropbox, get Link and manage files and past links   
    See Carlos' post above regarding upgrading for Alfred 3...
     
    http://www.alfredforum.com/topic/3922-screenshots-11-capture-save-to-dropbox-get-link-and-manage-files-and-past-links/page-2#entry43776
     
  6. Like
    jarhead got a reaction from dfay in Alfred Remote & Photoshop   
    EDIT: A more thorough write-up can be found here...
     
    While attempting to find ways to implement Alfred Remote into my workflow, I learned that Photoshop supports Applescript (can't believe it took me this long to find out).
     
    Combining Alfred Remote & Photoshop is cool. Among other things, you can launch Photoshop Actions.
     
    As an example, I use Photoshop actions to highlight portions of a document and then create a tear effect that I use in Keynote presentations. Before, I had to remember the keyboard shortcuts I assigned to the various actions and run them at various times. This worked okay.
     
    Now, with Alfred Remote, it is a much easier process.
     
    I can make a selection (or selections) using the marquee tool in Photoshop and with the press of a button in Alfred Remote, the selection is highlighted. I then begin the tear effect action. I can then apply a brush to the top, left, right and bottom each with a separate button. I have buttons for decreasing and increasing brush size (although I still primarily use the bracket keys) and a final action that saves the image to my desktop and closes it in Photoshop.
     

     
    Example Applescript for running an action in Photoshop...
    on alfred_script()   tell application "Adobe Photoshop CC 2014" do action "cool action" from "Main Action"   end tell end alfred_script Example Applescript for pressing a key on the keyboard (left bracket key)...
    on alfred_script()   tell application "Adobe Photoshop CC 2014" tell application "System Events" to key code 30   end tell end alfred_script Now, using my left hand, I run the various actions from Alfred Remote on my iPhone/iPad while applying the brushes with my right hand using my mouse/trackpad. I've used this setup to the point that I can do it all without looking at my iPhone/iPad to press buttons.
     
    Video demonstration (I performed the actions slower in the video so the button presses in Alfred Remote can be seen)...
     

     
  7. Like
    jarhead reacted to jmjeong in Markdown TOC Generator   
    Download: 
     
    https://dl.dropboxusercontent.com/u/4345768/markdown-toc.alfredworkflow
     
    Usage:
     
        Select markdown document, and select [Markdown TOC] then toc contents are copied to Clipboard. 
     
    Markdown:
     
     
    Output: 
     
       Default depth of section is 2. 
     
         
     
     
     
     
     
  8. Like
    jarhead reacted to razzi in Jekyll Create & Publish   
    I've modified the script to add the correct YAML header as well
     
    file=$(echo "$( date '+%Y-%m-%d-' ){query}.md" | tr " " "-") touch ~/<site>/_posts/"$file" && echo -e "---\nlayout: post\ntitle:  "{query}"\ndate:   $( date '+%Y-%m-%d %T' )\ncategories: \n---" > ~/<site>/_posts/"$file" && open -a "Byword" ~/<site>/_posts/"$file"
  9. Like
    jarhead reacted to Carlos-Sz in TOC 1.0: Create, update and remove a markdown TOC (table of contents)   
    Overview
    TOC Workflow creates, updates and removes a markdown table of contents that can be useful when writing a more complex document. It should work fine when exported to a html document.
    Note that, due a bug/limitation of current OSX PDF print function, TOC will not work in a PDF saved/converted by most of writing applications.
    How to Use
    Create a TOC
    open your markdown editor and type your text when you finish it show Alfred and type the keyword toc press Return key the workflow will select the text, copy it, add the TOC and anchor, then paste the text back You can also set a hotkey to create a TOC. Update a TOC
    If you have edited the text after inserting the TOC then just run the keyword toc again and the workflow will create an updated TOC.
    Remove a TOC
    The workflow can also remove the TOC and anchors for good. It can be handy if you e.g. want to work with a cleaner text, without TOC and anchors.
    To remove show Alfred, type the keyword toc, hold Command key then press Return key.
    You can also set a hotkey to remove it.
    Screenshots
    Type your markdown text as always and don't you worry about TOC:

    Show Alfred, type the keyword toc then press return key (or use the hotkey) to create a TOC and the anchors:

    Preview the document to see the TOC:

    Download
    Before using the workflow for good make some tests and backup your texts first.
    Version 1.0 29 Apr 2014 Requires Alfred 2.3 Download Now
  10. Like
    jarhead reacted to ramiro.araujo in ImageOptim Workflow   
    ImageOptim Workflow for Alfred app
    This is a wrapper Alfred workflow around the great ImageOptim-CLI library from Jamie Mason. Mason's library uses three image optimization applications to automate optimization of JPEGs and PNGs. It uses the open source ImageAlpha and ImageOptim apps, and the JPEGmini app, which is not free, but highly recommended. Together they shrink images like a beast.
    My own addition to this image processing is that if JPEGmini is unavailable, it uses ImageMagik's mogrify to compress JPEGs to quality 75, if they're actually higher than 75. To do this, I'm also bundling ImageMagik'smogrify and identify. A quality of 75 is usually pretty safe and it still has a way smaller size and usual JPEGs saved from Photoshop without optimization. That being said, JPEGmini does way better job and it's recommended.
     
    Requirements
    ImageOptim, installed in /Applications folder. ImageAlpha, installed in /Applications folder. JPEGmini, optional but recommended, installed in /Applications folder. If using JPEGmini, you need to add Alfred 2 to the allowed apps in the accesibility list. Go to Preferences, Security and Privacy, Privacy tab, click the lock to allow changes, and drag the Alfred 2 app into the list. Usage
     
    1. find or select one or more images or folders, show the file actions in Alfred, and select "Optimize Images". Note that any Alfred's way of selecting files work, such us:
    select one or multiple files/folder in finder and press ⌘ alt \ browsing or finding files in Alfred, and triggering actions for the file saving files in Alfred's file buffer, and then ⌘ → to action buffered files.
     
    2. You'll see a notification indicating the number of files to process. The work is done partially with AppleScript, so even if it's happening in the background, the apps are actually laoded and you can focus on them to check the status. Depending on the number and size of images, it could take a while.

     
    3. When the optimization is completed, you'll see another notification, indicating the original Kilobytes, the current Kilobytes, total savings and savings percent.

     
    Caveats
    You shouldn't run optimizations in parallel. Tecnically you could if the batch already jumped to the next app (from JPEGmini to ImageOptim for example), but it's looking for trouble. I'll consider adding a check in the future to prevent parallel process from happening, but I'm affraid this could add other complications, as in how to clear the processing flag if optimization process is interrumpted earlier.
     
    Installation
    For OS X 10.9 Mavericks, Download the alfred-image-optim-workflow.alfredworkflow and import to Alfred 2.
    For Previous OS X Versions, Download the alfred-image-optim-workflow.alfredworkflow and import to Alfred 2.
     
    Source Code
    Clone or Fork the Workflow: https://github.com/ramiroaraujo/alfred-image-optim-workflow
     
    Changelog
    2014-01-06 - Released 2014-01-23 - Added folder support, and correctly counting number of files inside folders
  11. Like
    jarhead reacted to RodgerWW in Replace spaces with dashes in file name   
    Try this in your script for creating the file:
    file=$(echo "{query}.md" | tr " " "-") touch $( date '+%Y-%m-%d-' )"$file" SPACES still unchecked.
  12. Like
    jarhead reacted to skyzyx in Manpages (using explainshell.com)   
    Helps you lookup what shell commands mean using http://explainshell.com.

     
    Your OS X installation should have PHP 5.3.3 or newer installed. Lion or Mountain Lion should meet the minimum requirements. If not, you can install the latest version of PHP with MacPorts or Homebrew.

     

     



     

    Download! Requires Alfred 2 and the Powerpack. Updates can be found and installed using Monkey Patch, or the older Alleyoop (discontinued).

  13. Like
    jarhead reacted to AlfredFreak in Gmail in Chrome Workflow   
    Hi, I made this for myself and thought I'd share.  
    I'm a heavy Gmail user, and I think Gmail works best in Chrome. I wanted to always have a Gmail tab open, and to *not* open multiple Gmail tabs when I use the workflow from other applications.   I also wanted the Gmail tab to always be pinned to the left. It can't be done via AppleScript, so I'm using a Chrome Extension called Auto Pin URL. Get it if you want the Gmail tab pinned left (it's not required for the workflow to function. Without it, your Gmail tab will be *wherever* in Chrome):  
    https://chrome.google.com/webstore/detail/auto-pin-url/heodenddhgffdcadgghkghlcjjikaahf  
    Here is the URL you will need to add to Auto Pin URL: https://mail.google.com/mail/u/0/  
    Here's the features of the workflow (keyword / explanation):  
    gm - GMail. Whatever you're doing, this brings Chrome to the front and activates the Gmail tab. If there's no Gmail tab, it will create one (and Auto Pin URL will move it to the far left). I have assigned it Shift-Control-z  
    gmn - GMail New. Open a new compose window. (This is the lone exception in that it opens a new tab. I don't like the new compose window you get by typing c in gmail.) I have assigned Shift-Control-x. This tab auto closes once you send the mail.  
    gms - GMail Search  
    gmf - GMail From. Search for sender  
    gmt - Gmail To. Search for recipient  
    gmc - GMail Contacts. Search Gmail contacts  
    gmgi - GMail Inbox ("gi" is Gmail's default Inbox shortcut)  
    gmgt - GMail Sent. Sent items. ("gt" is Gmail's default Sent Mail shortcut)  
    gmga - GMail All Mail. All mail. ("ga" is Gmail's default All Mail shortcut)  
    NOTE: I made this for my Google Apps account. Haven't tested it on a regular gmail account, but I bet it works fine. I'm no AppleScript expert, so my code may be crappy. Buy hey, this workflow works great for me.  
    Download here: http://s000.tinyupload.com/?file_id=75677841761488282960  
  14. Like
    jarhead reacted to poritsky in Search Ulysses III from Alfred   
    I made a workflow to search the Ulysses database for the new Ulysses III. This feature is missing from the app itself (for now) so I put together this workflow to get around that. The workflow simply adds search scopes for Ulysses' "sheet" and "group" filetypes. As a bonus, there's also an "Open in Ulysses" File Action included with the workflow. It works on .txt and .rtf documents, which will come into Ulysses parsed as Markdown.
     
    Read more on my site or download Search Ulysses 3.alfredworkflow now.
     

  15. Like
    jarhead reacted to Carlos-Sz in Markdown to BBCode 2.0   
    Overview
    The workflow converts a markdown text to a forum BBCode and copy it to the clipboard.
    Usage
    Select the text to be converted in your Markdown Editor (such as Byword). Bring Alfred and type the keyword mark then hit Return key. You can also use a hotkey instead of the keyword.
    Markdown Syntax
    Headers

    # Header Level 1 ## Header Level 2 ### Header Level 3 Font Styles
    *Italic* or _Italic_ **Bold** or __Bold__ ***Italic and Bold*** or ___Italic and Bold___ ~~Strike Through~~ ~~~Underline~~~ LinkMultiple links per line utilizing the following format:

    [Example](http://www.example.com) ImageMultiple images per line utilizing the following format:

    ![Example](http://www.example.com/example.png) Image LinkSingle image link (that points to an URL) per line utilizing the following format:

    [![Example](http://www.example.com/example.png)](http://www.example.com) Unsorted ListUp to 2 levels utilizing one asterisk then a space at the beginning for level 1 and a tab plus an asterisk and a space at the beginning for level 2:

    * item at level 1 * item at level 2 * another item at level 1 Numeric ListUp to 2 levels utilizing a number followed by a dot and a space at the beginning for level 1 and a tab plus a number followed by a dot and a space at the beginning for level 2:

    1. item at level 1 1. item at level 2 2. second item at level 1 Code spanEnclose the words with back ticks e.g. `inline code`
    Unlike code block you may need to escape a markdown character using a backslash.
    Code block
    Type 3 back ticks in the first line alone and another 3 in the last line alone:
    ```
    Code Line 1
    Code Line 2
    Code Line 3
    ```
    The workflow will ignore any Markdown syntax within a code block. There is no need to escape a character.
    Quote
    Just start a line with a greater-than sign followed by a space as seen below:

    > quoted text here The workflow also supports multiple lines in a quote. Just add two spaces at the end of the line (in the example below space is represented by "{space}"): 

    > quoted text line 1{space}{space} > quoted text line 2 Horizontal ruleIn a line alone you may type one of the following options:

    --- - - - *** * * * ___ EscapingTo type a markdown character that is part of a syntax without being recognized as a markdown one type a backslash ("\") in front of it. A link (any kind) requires only a single backslash at the beginning of the link.
    Download
    Version: 2.0
    Release Date: 04 Mar 2014
    OSX 10.9.2
    Download Now
    What's New
    Up to 2 levels in a simple list Up to 2 levels in a numeric list Support to an image that points to an URL Horizontal rule Strike Through Underline Quote, including multiple lines Improved code span or inline code Support to escaping Added keyword mark Added Help keyword mark? New icon
  16. Like
    jarhead reacted to vitor in PinAdd — Takes arguments as tags, and adds your browser’s frontmost tab as a pinboard bookmark   
    This workflow is officially deprecated in favour of PinPlus. It was released to the public domain, so I leave the record here if anyone is interested. You can still find the old source on Github.
     
    Before using this workflow, you need to configure it with your Pinboard account by running :configurepinadd followed by your api token and your preferred browser.



    You can get the API token of you Pinboard account by visiting https://pinboard.in/settings/password

    Your preferred browser may be one of Safari, Webkit, Chrome, ChromeCanary, Chromium, or depends (“depends” uses the browser you have as the frontmost window, provided it’s one of the mentioned ones).

    An example configuration would be: configurepinadd username:HSJWJK2HHSKI14QPDOIK safari
    When you’re all set, call pin followed by your tags and/or description — both are optional, and descriptions must be preceded by // (two forward slashes and a space). Pick if it should be added as a regular bookmark or as a private one (this is important, as it’ll trump your default options), and you’re done.



    The title of the bookmark will be the title of the page.

    You can also precede your tags with . (a single period), and it will add the bookmark as unread.



    There’s also a hotkey you can setup to quickly add bookmaks as unread (without any tags or description).
    If adding a bookmark fails for any reason (for example, if the connection drops), you’ll get a notification and a PinAddRetry.command file will be added to your Desktop (if it happens multiple times, it’ll add an entry for each failed attempt). You can double-click this file at a later time to run it, and retry adding the bookmarks.
  17. Like
    jarhead got a reaction from florianlionel in Append to nvALT journal   
    Just an updated version of Marc Abramowitz's Append to nvALT journal extension to work for Alfred v2.
     
    Marc's description...
     
     
    More on nvALT → http://brettterpstra.com/projects/nvalt/
     
    Download extension here → http://jrhd.me/MDZN
  18. Like
    jarhead reacted to sphardy in markdown to evernote service   
    Hi - I wanted to try to make at least one significant contribution to the beta, so here's a workflow that allows you to send selected markdown formatted text to Evernote via a hotkey.
     
    Not all my own work I'm sorry to say, but a flow I've wanted for a while and only investigated properly recently. (I spend a lot of time taking notes and writing up reports. Markdown support in Evernote would be ideal, but until then - Alfred comes to the rescue)
     
    It requires the installation of multimarkdown - available here: http://fletcherpenney.net/multimarkdown
    It reuses a script available here: http://nsuserview.kopischke.net/post/6223792409/i-can-has-some-markdown
     
     

     
    Evernote note title, notebook and tags can all be specified via markdown metadata. All other text is then imported to Evernote as HTML. 
     
    Workflow available to download here: http://d.pr/f/2pUe
     
    Updated: Corrected issue with non-escaped double quotes
  19. Like
    jarhead reacted to ctwise in My IP   
    Very cool. I adapted yours, added network name and support for multiple networks. Also threw in a MAC address keyword. Thanks!
     
     
    http://tedwi.se/u/d8
  20. Like
    jarhead reacted to jdfwarrior in Create New File Workflow   
    Technically, I could make my workflow do the exact same thing that you are referring to. I just chose not to because I saw the Phyllstein had already posted that. I didn't want to step his toes or anything. 
     
    Since some of you are interested in this, I'll post it in an hour or so and let you guys try it out.
  21. Like
    jarhead reacted to ctwise in Top Processes   
    Simple workflow to display the top 10 cpu-using processes. It can be downloaded from here http://tedwi.se/u/d6 or from AlfPT. It assumes that the 'kill' workflow (http://tedwi.se/u/cx or AlfPT) is also installed to provide process killing capabilities.
     

  22. Like
    jarhead reacted to Vero in New in b117: Change selected text & background colour   
    Just a little heads-up to let you know that you can now change the colour of the selected text and the selected background. This means that rather than having the OS colour, you can make it match your theme.
     

    To edit these two colours, hold the Fn key and click the Alfred input field to edit either the text or the background colour.
  23. Like
    jarhead reacted to canadaduane in Dropbox Short Links Workflow   
    For any file in your Dropbox folder, this workflow shows the dropbox short link URL (e.g. http://db.tt/1LkWGVJF) and copies the link to the clipboard (Cmd+Shift+D):
     
    1. Select a file in Finder (must be a file within your Dropbox folder, e.g. ~/Dropbox/Photos/MyPhoto1.jpg)
    2. Press Command+Shift+D
    3. Authorize the workflow to use the Dropbox API (only if this is the first time)
    4. The shortened link pops up and is copied to the clipboard.
     
    It uses OAuth in the background to connect to Dropbox so you can authorize the Alfred 2 Workflow without storing passwords insecurely. For those who are interested, it starts a Ruby-based local web server using Sinatra which is then opened in the default browser. You can authorize the Dropbox app in your browser, and then the local server shuts itself down. Once authenticated, you don't need to do this step again.
     
    Once connected via OAuth, this workflow has the potential to do a lot of things with Dropbox, but currently only queries the dropbox service for shortened URLs. This method (using OAuth/dropbox) has the advantage that any file in your Dropbox folder can be shared, not just those in the "public" directory (a deprecated method of accessing dropbox files).
     
    The downloadable workflow itself is here (on dropbox, naturally):
     
    http://db.tt/1LkWGVJF http://db.tt/A3eZqMAr (new version, fixes direct linking to folders)   And the github repository is here: https://github.com/canadaduane/alfred2-dropbox   Duane
  24. Like
    jarhead reacted to aiyo in Send URL   
    I have updated Send URL and it now includes options to copy to clipboard as a HTML or Markdown link.
  25. Like
    jarhead 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)
×
×
  • Create New...