Jump to content

Carlos-Sz

Member
  • Posts

    911
  • Joined

  • Last visited

  • Days Won

    69

Everything posted by Carlos-Sz

  1. Overview Workflow to display recent Finder files and folders featuring: 5 default categories 2 custom categories Favorites, including a file action Keywords and hotkeys for Favorites and all categories apart Interaction with Open/Save dialogs and Finder Go To Folder Preview, reveal, open or use Alfred file actions Usage Show Alfred and type the keyword rec: You can also use the category keyword if you prefer to access the recent files directly, without an initial menu: Now: keyword now Folders: keyword fol Applications: keyword apps Documents: keyword docs Downloads: keyword dow Custom Category 1: keyword c1 Custom Category 2: keyword c2 Favorites: keyword fav In addition, there is a hotkey for the keyword rec, Favorites and all categories apart. Note that all keywords, as well as the hotkeys, can be changed (go to Alfred Preferences > Workflows). Finally, once inside a category you have the following actions: Return key: open the file or folder Command key: reveal the file or folder in Finder Option key: pass the file/older path to an open/save dialog or Finder window Control key: add/remove an item to/from Favorites Shift key: preview (Quick Look) the file or folder Custom Categories You can set up to two custom categories: Show Alfred and type the keyword recpref Select a category to configure and press return key Type an unique category name with at least 3 characters Type one or more (separated by comma) file types e.g.: com.adobe.pdf,public.plain-text To find a file type you can use Alfred Metadata Analyzer. To remove a custom category press command key while highlighting one of them in recpref. Favorites All files or folders set as a favorite item will remain in the list no matter how old they are. To add an item to Favorites just highlight a file or folder, hold control key and press return key. To remove an item go to Favorites, highlight an item, hold control key and press return key. You can also add items utilizing Alfred File Action (accepts multiple files). Note that Favorites has also its own keyword (fav) and hotkey. Interacting with Open/Save Dialog or Finder You can pass a recent file or folder path, or an item in Favorites, to an open/save dialog or even the current Finder window to go to that folder: when an open/save dialog is displayed type the keyword rec or any other category keyword find an item (a file or folder or an item from Favorites), highlight it, hold option key and press return key wait a bit so the workflow can load and paste the item path Default Folder The workflow remembers the last path used per application. To use the feature just type the keyword df when an open/save dialog is displayed. If the workflow was never used for the application, or the path does not exist anymore, then the keyword rec will be automatically triggered so you can select a path from a file or folder. There is also a hotkey to make things even faster. Make sure to give the feature time to process because e.g. if you hold keyboard keys way too long then the feature may not work as expected. What’s new Up to 2 custom categories (keyword recpref) Downloads category Keyword for each category Hotkey for each category Multiple files in Add to Favorites file action Changed Auto-path to Default Folder (keyworod df) Changed Just Now category to Now Added Help (keyword rechelp) Update to Alfred 2.3 features Several internal improvements Download Version 4.3 beta 2 (removed Alfred 3 references) Release date: 12 Jul 2020 Requires Alfred 4 Download Version 4.2 Release date: 19 Jun 2016 Requires Alfred 3 Download
  2. The drill-down is a great concept. I’m playing with recent Finder items and I used the concept: Selecting “Applications”, for example, will load a list of recent apps: At this point you can search the app by typing something. However if you hit delete (backspace) once, removing the space after the arrow symbol, the workflow will go back to its initial list (first screenshot). Initially I thought that I could only use “search” Alfred 2 script command. However, right now the search command will only highlight the text in an existing Alfred 2 window. I was expecting that I could use this command to overwrite the current Alfred 2 text. Anyway, I still use the search command. However, after it the workflow pastes the keyword and the list is back to its initial state. All that using AppleScript. It would be smoother (code cleaner) if Alfred 2 “search” command would work the same way with or without its window showing. Anyway, this workaround does the job in a smooth way, without flickering. Note: this workflow is still a work in progress, not ready for a public release.
  3. Great. I’m about to make new playlists so I did this little workflow. In addition, here is a new version: - current playlist is not added to Alfred window - the song will be added only if it does not exist in the selected playlist Download: http://dl.getdropbox.com/u/127623/Add%20to%20Playlist.alfredworkflow
  4. Overview Add current iTunes song to a selected playlist or select or create a playlist and add songs to it. Usage Type the keyword addto and select a playlist to add the current iTunes song to it. Or type the keyword addto, highlight a playlist, press Command key then Return key to add any song from your library to the selected playlist: The last selected playlist will always be used if you e.g. use the hotkey to add the current song to it without any interaction. Download Release date: 26 Feb 2014 OSX 1.9.2 iTunes 11.1.4 Alfred 2.1.1 Download Now What's NewRewritten to take advantage of all Alfred 2.1 AppleScript improvements Support to iCloud songs (thanks to Katie) Add songs to a playlist by using Command key (thanks to Katie) Hotkey to add the current song to the last playlist Hotkey to show the workflow Create a new playlist if it is not found Start and play iTunes if necessary I would like to thanks Katie for all her help and great suggestions: THANK YOU!!
  5. Great! Just read about Man of Steel (2013).
  6. @Jonas I don’t know if it can be useful for you but here is a code to get Firefox URL: http://dl.getdropbox.com/u/127623/urlfox.alfredworkflow Source: https://github.com/albertz/timecapture/blob/master/mac/app-scripts/url%20of%20Firefox.py
  7. That would be really, really useful when working with script files and other files like icons (at least for me): Please!
  8. @ ctwise: great workflow. However, when I select a script it is not opened (.scpt).
  9. Thank you for sharing it. I’ll try it later tonight.
  10. I made a workflow that moves a file to Public folder and then copies the URL: [Workflow] Move selected Finder file to Dropbox + URL to clipboard
  11. Great. But I think a “Current track” item would be better.
  12. I’ve just tried to add São Paulo and Brasília with no luck. Anyway, it’s a great workflow!
  13. 1. Thanks to Florian for all his help. 2. How this workflow works 2.1. Keywords: 2.2.1. "next": shows next song and currently playing song titles in Alfred window from a custom playlist (a list made by you) or the current album from the current song; 2.2.2. "previous": shows previous song and currently playing song titles in Alfred window from a custom playlist (a list made by you) or the current album from the current song; 2.2.3. "pick4me": shows and plays a random song from your library. 2.2. Hotkeys: 2.2.1. "control+option+command+p": shows Alfred window with a random song from your library; 2.2.2. "control+option+p": picks a random song from your library and displays a default Notification. 3. Known issues Right now compilations album played from Library will not work. However a custom playlist (a list made by you) is not affected by the issue. One more thing: when playing a song from Library the workflow requires “album artist”, “album” and “track number” in order to work properly. If you don’t care too much about tags then use a custom playlist that can hold your entire library anyway. Download: http://dl.getdropbox.com/u/127623/Itunes%20up%20next.alfredworkflow
  14. Don’t pick any of them and it should work.
  15. A new version with a lot of improvements: http://dl.getdropbox.com/u/127623/Itunes%20up%20next.alfredworkflow Now it includes artist as suggested by Florian.
  16. Yes, I think it is possible. Thank you for your suggestion.
  17. Any help for improvements will be appreciated. In resume: - The workflow works well with a custom playlist. - Song playing from Library is another story: iTunes does not provide a way to get the order of playing songs (even with shuffle off) iTunes does not provide a way to get a list of the songs from current album - Right now the workflow can get a list of songs from current album (but not from an Album with “Various” as album artist) - Sometimes or for some tracks the code inside Alfred does not work though it works in AppleScript Editor I know there are a lot of missing things regarding a song playing from Library but a song from Library can be skipped making the workflow a simple next/prev. Download the updated version here: http://dl.getdropbox.com/u/127623/Itunes%20up%20next.alfredworkflow
  18. I was able to “manually” get the album songs based on the current track. The efficiency of this method will depend on how organized the library is because it is based on artist and album tags. Tomorrow I’ll test the code in a workflow…
  19. I made some research and right now iTunes 11 is not responding to shuffle or repeat. It’s a bug. But it seems to be very difficult to get the sequence of songs when played from the “Music” library. For now (and unfortunately), the “up next” and “previous” will work only when a playlist is playing.
  20. I have just sent you a link with the current “alpha” version. As I wrote to you, I ended up making one script for each action and it is working a lot better.
  21. Right now the code works when a playlist is playing. There are things to do yet but here is the code so far: http://dl.getdropbox.com/u/127623/Itunes%20up%20next.alfredworkflow Any help is welcomed. I’ll post here the progress. If any.
  22. OK. I’ve finished the previous script too (with it into Alfred). I’ll fine tune them and I’ll create a new topic. Note: iTunes 11 “song repeat” and “shuffle” commands are broken*. I can’t get them so this script can’t tell precisely the information considering those two iTunes features. *http://dougscripts.com/itunes/2012/11/itunes-11-applescript-bug/
  23. I made a script to preview what would be the next song into Alfred:
×
×
  • Create New...