-
Posts
911 -
Joined
-
Last visited
-
Days Won
69
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Everything posted by Carlos-Sz
-
Workflow gives error when running AppleScript
Carlos-Sz replied to Subject22's topic in Workflow Help & Questions
The original code didn't work in my AppleScript Editor (Script Debugger). -
Workflow gives error when running AppleScript
Carlos-Sz replied to Subject22's topic in Workflow Help & Questions
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. -
Workflow gives error when running AppleScript
Carlos-Sz replied to Subject22's topic in Workflow Help & Questions
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. -
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.
-
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.
-
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.
-
Evernote Workflow 9 beta 4 (Alfred 4)
Carlos-Sz replied to Carlos-Sz's topic in Share your Workflows
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? -
Version 4.3.2 seems to be working fine! Thank you!
- 560 replies
-
- music player
- music
-
(and 3 more)
Tagged with:
-
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?!
-
Thank you. It’s working now. Great theme!
-
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…
-
The new version is not working here too. I posted here about it: https://github.com/vdesabou/alfred-spotify-mini-player/issues/20
- 560 replies
-
- music player
- music
-
(and 3 more)
Tagged with:
-
It seems the link is not working.
-
App Install [major update: 17. March | v1.0]
Carlos-Sz replied to laerador's topic in Share your Workflows
My suggestions: - Show app/dmg/pkg icon instead of the workflow one - Install and move to trash as the default action Great workflow! -
New to scripting, could use some direction.
Carlos-Sz replied to DrLulz's topic in Workflow Help & Questions
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 -
New to scripting, could use some direction.
Carlos-Sz replied to DrLulz's topic in Workflow Help & Questions
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 -
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!
- 560 replies
-
- music player
- music
-
(and 3 more)
Tagged with:
-
Trigger a workflow action from applescript
Carlos-Sz replied to kapps's topic in Workflow Help & Questions
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. -
Here is the message I get: https://dl.dropboxusercontent.com/u/127623/Screenshots/spdev.png
- 560 replies
-
- music player
- music
-
(and 3 more)
Tagged with:
-
Yes. I got a Premium requirement message. Anyway, I started using Spotify this week and your workflow seems to be great.
- 560 replies
-
- music player
- music
-
(and 3 more)
Tagged with:
-
FYI the download link is not working. It seems I need a premium account to get the Spotify keys, is that right?
- 560 replies
-
- music player
- music
-
(and 3 more)
Tagged with: