Jump to content

Carlos-Sz

Member
  • Posts

    911
  • Joined

  • Last visited

  • Days Won

    69

Everything posted by Carlos-Sz

  1. The original code didn't work in my AppleScript Editor (Script Debugger).
  2. Having a very small file in trash lead the 'i' equal to zero which is not a valid index in your units list. In addition you have to ask Finder about trash items which the original code didn't.
  3. The code below seems to work (does not verify if trash is empty): set trash_size to (do shell script "du -sk ~/.Trash/ | awk '{print $1}'") as integer set units to {"KB", "MB", "GB", "TB"} set i to 1 repeat while trash_size is greater than 1000 set trash_size to trash_size / 1000 set i to i + 1 end repeat set trash_size to roundTo(trash_size, 1) tell application "Finder" to set num_items to count (every item in trash) trash_size & item i of units & " for " & (num_items) & " items" as string on roundTo(n, numDecimals) set x to 10 ^ numDecimals (((n * x) + 0.5) div 1) / x end roundTo Note that I set i to 1 initially and call Finder to get trash items.
  4. Finder, for some reason, is busy and not queueing additional commands. Maybe Finder is not 100% operational or it is indeed stuck in some action. Can you try to restart Finder or even your Mac? When the first beta is ready I’ll try to install Yosemite.
  5. It seems Yosemite Finder rename command may be different or not available yet. I’m still running Mavericks but you can make a test so we can get more informations about the error: 1. Download this zip 2. Uncompress the two files in the Rename 3.0 workflow folder 3. Open regex_test.scpt in AppleScript Editor 4. Select 2 files in Finder (test files, they will be renamed) 5. Run the script Thank you for your feedback.
  6. By the way, can you consider some AppleScripts commands to get some Alfred preferences? For example: hide subtext: true or false background color (for those that like to change the icon color) Right now, to make some workflow adjustments to support the hide subtext feature I have to read the Alfred preferences and I'm not sure if you think that it is the way to go. Thanks.
  7. Right now the workflow is using the only official command Evernote application gives and that is append text to a note. It is possible of course though I wish Evernote supports prepend officially too. One question: do you prepend text to a text note? Or a complex HTML note?
  8. A new Yosemite theme by Andrew is out. Again, modifiers feedback in title would be perfect with themes like this.
  9. Great! My workflows also use subtext. However, it is possible to read this setting from Alfred preferences and make some adjustments so the workflow looks good and functional even without the subtext.
  10. It is great to see Alfred 2 can be as clean as we want it to be. I really like Hide Result Subtext (Alfred Preferences > Appearance > Options). However, one important interaction is missing here: modifiers key When Hide Result Subtext is checked nothing is displayed when a modifier key is pressed. We kind of loss a lot of Alfred and Alfred workflow functionalities. My suggestion when Hide Result Subtext is checked: show the modifier key text in the Alfred item title. This way Alfred would respect the user choice (no subtext) and grant all Alfred and workflows functionalities. Please?!
  11. Thank you. It’s working now. Great theme!
  12. Your theme made me think that my workflows should be tweaked for users that like to Hide result subtext (Alfred Preferences > Appearance > Options). Hiding the result subtext makes Alfred even cleaner. Great theme by the way and sorry for thinking out loud here in your topic…
  13. The new version is not working here too. I posted here about it: https://github.com/vdesabou/alfred-spotify-mini-player/issues/20
  14. My suggestions: - Show app/dmg/pkg icon instead of the workflow one - Install and move to trash as the default action Great workflow!
  15. Great. Entropy should return a list of files then: -- set sFilesInZip to "app command to inspect" repeat with sCur in sFilesInZip -- add an item (sCur) in Alfred here end repeat
  16. You can parse the query with a delimiter e.g. -- {query} format is name:password set sArgv to "{query}" as text if sArgv contains ":" then set text item delimiters to {":"} set ZipName to text item 1 of sArgv set ZipPassword to text item 2 of sArgv set text item delimiters to "" else set ZipName to sArgv end if For file action take a look at my Zip workflow (not updated to the latest Alfred version yet): link
  17. I really thought keys were needed due the Spotify.com message above… Sorry. It is working! First minute feedback: [issue] - using fn key to add a track to Alfred Playlist is also pausing Spotify: [update] I got a message saying the track was added but it seems it is not. It seems it is only pausing Spotify. [request] - I need keyword to add a track to Alfred Playlist e.g.: keyword sp (Spotify Current Playing) It would show cover (instead of pause button) and the current playing song you already show in the main keyword but the main action (return key) would be add to Alfred Playlist option actions with modifiers could be useful (lyrics and album/artist related actions you already have somehow) Do you think you can make such keyword? I really like to be focused on current playing song so I can “bookmark” a track as fast as possible. If you don’t think it is something you’d like to see in your workflow could you please help me implemented it in my copy? Thank you in advance. PS: great, great workflow!
  18. If I get it right then maybe you should look for workflow External Trigger. My Pinboard workflow makes use of it. From an external script you can call preload keyword without showing Alfred itself.
  19. Here is the message I get: https://dl.dropboxusercontent.com/u/127623/Screenshots/spdev.png
  20. Yes. I got a Premium requirement message. Anyway, I started using Spotify this week and your workflow seems to be great.
  21. FYI the download link is not working. It seems I need a premium account to get the Spotify keys, is that right?
×
×
  • Create New...