Jump to content

jaspalx

Member
  • Posts

    10
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    jaspalx reacted to Carlos-Sz in Recent Items 4.3 beta 2 for Alfred 4: Finder Recent Items   
    Thank you  for the feedback.
     
    Please, try the following version. It removes Alfred 3 references.
     
    Download Recent Items 4.3 beta 2
  2. Thanks
    jaspalx reacted to skydiver in Alfred Chrome Profiles   
    Open your Google Chrome or Canary profiles from Alfred
     
    I have many Chrome / Canary profiles, and when the browser is closed, next time the last used profile will be opened.
     
    With this workflow, i'm able to open the profile i want directly from Alfred.
     
    Hope someone else find useful 🥳
  3. Like
    jaspalx reacted to Benzi in BulkRename - bulk rename your files, with built-in and custom presets   
    Here is a workflow for bulk renaming files.
     

     
    You select some files either in Alfred using the File Navigator or the File Buffer and use the File Action called "Rename with BulkRename", or select the files in Finder and use the hotkey to trigger the workflow for the selected files.
     
    Once triggered, Alfred will display a preview option and a bunch of preset actions that you can select. The preview option will display the modifications that will be made for each preset action listed.
     
    Preview
     
    Here are a couple of snapshot portions of what you see when pressing the Shift key:
     

     
     

     

     
    Issues are highlighted so that you know if running a preset will work or not. Even if you run that preset, nothing will happen.
     
     
    Preset Actions
     
    There are 6 actions included as a sample, but you can easily create your own actions using the .list keyword.

     
    To create a new preset, type in .list <new name>. Delete a preset using Cmd+Enter
     
    Each preset is nothing but a collection of simple steps that help make the preset action possible. For e.g. when you select the Append Sequence Number preset, you will be shown the preset editor:

    What the above tell is that the Append Sequence Number preset is a collection of two steps:
     
    add text '_seq' at end add number from 0, at end There are added to the preset using any of the steps [+] listed.
    You can add any number of steps to a preset, even the same ones over and over.
    You can delete an added step using Cmd+Enter
     

    When you add a new step to a preset, or edit an existing step by selecting it, you will be shown the Step Node Editor as above. The above is the example for the "Number Sequence" step, and for this step you can control what the starting number is, where the number should be added, and the format (leading zeros to be added). Items with a arrow -> are variables that you can change by pressing the Tab key. To add the step, just select the first option, and that step will be added to the Preset that you were viewing before.
     
    Steps
    Steps are the building blocks of each preset, and currently BulkRename has the following:
    Find and replace: find text and replace with another, supports regex and plaintext, case sensitive and insensitive Add text: add some text at the beginning or end of the filename Add timestamp: add a timestamp at the beginning or end of the filename. Timestamp is one of current time, file created or modified time. YYYY,YY,MM,DD,hh,mm,ss can appear in the format string Convert case: switch the case of the filename to lower, upper, or title Strip text: remove x characters from the filename either at the start of end Number sequence: append a running number sequence, starting from a value that you can specify MP3 Tagger (beta): Extract MP3 tags from MP3 files Regex group extractor: Regex group pattern extractor Change Extension: Allows you to change the extension of a file  
    Keywords
    The main keyword is .rename (but you would not have to type that in if you use the File Action or the Hotkey) The second one to manage all your presets is .list. .preset and .node are keywords used by the workflow directly, and there is usually no need for you to type those in directly. Download
    Download from here  
    Notes
    This works with Python 2.7.2 last I checked  
    Have a look at the included sample presets using the .list keyword to get a hang of how presets are made, and then create your custom ones 
  4. Like
    jaspalx got a reaction from mccamel in Thesaurus   
    Please don't laugh at the code, I write applescript by copy-tweaking!
    Uses thesauras.altervista.org and ursanrazvan's applescript library.
     
    Enjoy!
    I'll aim to post any updates on my tumblr http://jaspalsahota.tumblr.com/post/48358079872/thesaurus-workflow-for-alfredapp-2
     
    Here's a screenshot
     
     
    If anyone makes this nicer/cleaner etc. please let me know.
    J
  5. Like
    jaspalx reacted to alfredclough in Recent Downloads Workflow   
    This workflow shows the contents of the downloads folder, sorted using file meta-data so that the sort is exactly the same as the "Date Added" sort on the Downloads folder (This sort is often the same as the last modified time, but is not always.) It provides a convent way to view the most recently downloaded files and you can scroll through them all or type part of the name of a file to find a specific one.
     
    Click here to download.
  6. Like
    jaspalx reacted to jason0x43 in Unit converter (no longer maintained)   
    Note: This workflow is no longer maintained.
     
    This is a really simple workflow that performs unit conversions. Conversion commands look like:
     
        u {value} {in units} > {out units}
     
    You can include a space after the u keyword, but it's not required. Units can generally be abbreviated or not, as long as the input is unambiguous. Here are some valid commands:
    u 5km > miles u 5km > mi u5km>mi You can also do unit math (again, spaces are generally optional):
    u 1cm * 1in u 1in^2 / 2mm^2 u1cm+2.5in-3mm>ft Just remember that units matter. You won't get any output if you try to do something like 1cm * 1in > in, because multiplying two lengths gives an area (like in^2).
     
    The calculator is called as you type, so it'll give you an answer whenever you type a query it can process. Actioning the result will copy the value (just the number) to the clipboard. That's it!
     
    Well, there are also a couple options you can configure. You can open the configuration file with the command u>. The options are:
    "separator" - what separator to use between the input value and output units "precision" - how many decimal digits to include in the output (set to null for unlimited)  
    More info and source is available here.
     
     
    Download
     
     
    Update 2014/05/22:
     
    You can now use a space between a number and its units (e.g., "5 km" in addition to "5km").
     
    Update 2014/02/06:
     
    Unit math is back!
     
    Update 2013/12/07:
     
    Add output precision option (see above)
     
    Update 2013/12/01 (again):
     
    Bug fix
     
    Update 2013/12/01:
     
    Added support for using "space" as the unit separator, so you can do queries like "1mile km".
     
    Update 2013/11/30:
     
    Added Euros to the currency list. I also added a couple extra commands, accessible with the 'u>' command,
     
    Update 2013/11/29:
     
    Currency conversion is back.
     
    Update 2013/11/25:
     
    At last, I pushed out an update that should have this back up and running. It's using a local library now, so it's faster and not subject to the whims of Google. Sorry it took so long.
     
    Update 2013/11/5:
     
    Google shutdown the API this workflow was using on November 1, so it's broken until I switch it to something else. Sorry about that. I'll have it back up and running in a day or two.
     
    Update 2013/10/11:
     
    Bugfix
     
    Update 2013/8/14:
     
    It should now work with Snow Leopard (Python 2.6).
     
    Update 2013/8/13:
     
    Now with Alleyoop support!
  7. Like
    jaspalx reacted to samvlu in Find Folder — Search by Folder Name Workflow   
    Find Folder
    Download here:
    http://samvlu.com/download/Find_Folder.alfredworkflow.zip
     
    Search by folder name.
    Enjoy!!
  8. Like
    jaspalx got a reaction from JorjGaidin in Thesaurus   
    Please don't laugh at the code, I write applescript by copy-tweaking!
    Uses thesauras.altervista.org and ursanrazvan's applescript library.
     
    Enjoy!
    I'll aim to post any updates on my tumblr http://jaspalsahota.tumblr.com/post/48358079872/thesaurus-workflow-for-alfredapp-2
     
    Here's a screenshot
     
     
    If anyone makes this nicer/cleaner etc. please let me know.
    J
  9. Like
    jaspalx reacted to RodgerWW in Toggle sound output on hotkey with Notification Center output   
    OK, cool. Now I can toggle between my only two used outputs with a shortcut!
     
    I needed to do a tiny bit of modification to the scripting, not just French/English translation, but flow overall, because for ME, the System Preferences would not close after run due to the "return" values within the if statements. I have no idea why really, but with farting around in the Applescript Editor, I modified the initial script as shown below. And now everything works for me, as 'mtlx' stated it should.
     
    MY script looks like this:
     
     
    tell application "System Preferences" reveal anchor "output" of pane id "com.apple.preference.sound" end tell tell application "System Events" to tell process "System Preferences" tell tab group 1 of window "Sound" click radio button "Output" if (selected of row 1 of table 1 of scroll area 1) then set selected of row 2 of table 1 of scroll area 1 to true set deviceselected to "Shure SRH440 Headphones" else set selected of row 1 of table 1 of scroll area 1 to true set deviceselected to "Internal Speakers" end if end tell end tell quit application "System Preferences" return deviceselected   Basically, I removed the two named returns, and at the end of the script simply returned the value set with deviceselected. As far as I know, the value will only be one thing due to the if/else. Now on my system, the hotkey press will simply toggle between my 2 outputs (flashing System Prefs only in the dock for a second, then quitting), and once switched, I get the notification telling me which is active [or selected].
  10. Like
    jaspalx got a reaction from Southgirl in Thesaurus   
    Please don't laugh at the code, I write applescript by copy-tweaking!
    Uses thesauras.altervista.org and ursanrazvan's applescript library.
     
    Enjoy!
    I'll aim to post any updates on my tumblr http://jaspalsahota.tumblr.com/post/48358079872/thesaurus-workflow-for-alfredapp-2
     
    Here's a screenshot
     
     
    If anyone makes this nicer/cleaner etc. please let me know.
    J
  11. Like
    jaspalx reacted to Jb_Bryant in Chrome Bookmark Search Workflow   
    I personally think you should revert the workflow to the matching algorithm it used before. I can't stand how matching works now. 
     
    Anyways, I added in a fallback search option to the workflow if anyone is interested: http://cl.ly/1X1z1f211f1L
  12. Like
    jaspalx reacted to oderwat in Find files recently changed (similar to Trickster functionality)   
    I often need to do something with my last saved or changed files, like a screenshot or a file I just downloaded with CyberDuck or saved from inside an application.
     
    Normally I use "Trickster" for that task. It which gives me access to files like recently downloaded, saved or edited files in a quick way but I thought it would be cool to have this in Alfred!
     
    After a brief check of existing workflows I could not find any which does the same simple task: List files in the current users home which are modified or created in the last 48 hours. The list is sorted descending by modification time. I also made the result list searchable.
     
    Simply type "last" and it will list the last modified files, you can press space and some letters to filter the results.
     
    You also can press Return to open the file or CMD+Return to Browse to the file with Alfred (and then use File Actions on it).
     
    https://github.com/oderwat/alfredworkflows/blob/master/Last%20changed%20files.alfredworkflow
     
    This workflow uses "workflow class" by David Ferguson (@jdfwarrior) to build the resulting xml data. Besides that it uses a "mdfind" shell command which can be enhanced if you want to change where it searches and what it filters from the results (I filter some filetypes which are unlikely to be interesting for me).
     
    I am supporting Updates by the "Alleyoop" Workflow now (Install that workflow from here: http://www.alfredforum.com/topic/1582-alleyoop-update-alfred-workflows/)   Feel free to comment!   Last Changed: 2013-04-19 19:06   V1.12: With the new Alfred 2 Update it is finally possible to fix the result order in a supported way (I modified workflow.php to support that). V1.11: Yet another method to fix the result order! Added 'Docoments/My Games' to blacklist. V1.10: Added iTunes to Blacklist (and a rather special personal Blacklist)! V1.9: Fixed problem with missing files when they have the same timestamp. V1.8: Updated to the new way Alleyoop works. V1.7: Changed how files are choosen to include files recently created even if they have an old timestamp. Added Microsoft Office Support files to the blacklist. Added Parallels VM Files to the Blacklist. V1.6: Made the found files in the result list draggable! V1.5: Added Alleyoop Support and fixed another bug with listing order (hopefully the last time now). V1.4: Fixed that the "oldest" entry was always displayed on the top (while the others where in descending order) V1.1: I updated the script to exclude some more files (mysql data, files in ~/Library, Safari Bookmarks)
  13. Like
    jaspalx got a reaction from blkrk4000 in Thesaurus   
    Please don't laugh at the code, I write applescript by copy-tweaking!
    Uses thesauras.altervista.org and ursanrazvan's applescript library.
     
    Enjoy!
    I'll aim to post any updates on my tumblr http://jaspalsahota.tumblr.com/post/48358079872/thesaurus-workflow-for-alfredapp-2
     
    Here's a screenshot
     
     
    If anyone makes this nicer/cleaner etc. please let me know.
    J
  14. Like
    jaspalx got a reaction from drking in Thesaurus   
    Please don't laugh at the code, I write applescript by copy-tweaking!
    Uses thesauras.altervista.org and ursanrazvan's applescript library.
     
    Enjoy!
    I'll aim to post any updates on my tumblr http://jaspalsahota.tumblr.com/post/48358079872/thesaurus-workflow-for-alfredapp-2
     
    Here's a screenshot
     
     
    If anyone makes this nicer/cleaner etc. please let me know.
    J
  15. Like
    jaspalx reacted to jaspalx in Thesaurus   
    Please don't laugh at the code, I write applescript by copy-tweaking!
    Uses thesauras.altervista.org and ursanrazvan's applescript library.
     
    Enjoy!
    I'll aim to post any updates on my tumblr http://jaspalsahota.tumblr.com/post/48358079872/thesaurus-workflow-for-alfredapp-2
     
    Here's a screenshot
     
     
    If anyone makes this nicer/cleaner etc. please let me know.
    J
  16. Like
    jaspalx got a reaction from Sridhar Katakam in Thesaurus   
    Please don't laugh at the code, I write applescript by copy-tweaking!
    Uses thesauras.altervista.org and ursanrazvan's applescript library.
     
    Enjoy!
    I'll aim to post any updates on my tumblr http://jaspalsahota.tumblr.com/post/48358079872/thesaurus-workflow-for-alfredapp-2
     
    Here's a screenshot
     
     
    If anyone makes this nicer/cleaner etc. please let me know.
    J
×
×
  • Create New...