-
Posts
8,572 -
Joined
-
Last visited
-
Days Won
715
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by vitor
-
-
Usage
Toggle Low Power Mode for your battery or power adapter via the lpm keyword.
- Rohit, LoneFireBlossom and alezvic
- 3
-
-
Update.
When a path is deleted, if there’s another with the same name in the Trash, the new one will have the date appended. This new version keeps track of the new name so it can recover it accurately.
To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater. -
6 hours ago, Erik E said:
I understand that I need to split the argument to variables
Right idea, wrong tool. You do have to split the argument, but not into variables. In this case you have to do it in the code itself. Try this Workflow.
6 hours ago, Erik E said:To break it down
Thank you for breaking it down so well. Made it really easy to understand what you were after and how to code the behaviour.
-
On 12/16/2021 at 1:07 AM, Uupis said:
Is there anything else I can do to attempt to get to the bottom of this?
I imagine not. I can reproduce the behaviour you mention on Monterey, though this is something I haven’t tried in previous versions.
On 12/16/2021 at 1:07 AM, Uupis said:I can imagine that this is a macOS issue
I suspect you’re right. That being the case, there might not be a fix possible from Alfred’s side. I’d wager the previous behaviour was simply incidental, thus why it wasn’t documented (I think).
-
To add, in your old Workflows you may have several downloaded from Packal. That being the case, the Packal Updater would update them, assuming it still works.
-
Update.
Removed restriction on file types to remove quarantine from.
To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater. -
5 minutes ago, Saez said:
Unfortunately it's not working.
Well, it is doing what you asked but I don’t know if what you asked for is correct. I adapted Dean’s code above which is expecting a name, not a URL. Does Music support playing a playlist from a URL? I don’t know; I never touched Apple Music (neither the service nor the app).
So you need to figure out what input Music needs to play the playlist, which you can do by reading the dictionary or searching online. My code showed you how to pass the argument to your code but you need to figure out what the correct argument is. -
1 minute ago, Saez said:
I thought if there is a way to copy this Arg and make AppleScript read it (get this arg).
That’s the code I posted above.
-
20 minutes ago, Saez said:
I never worked with API
Forget “API”, then. The acronym may be more confusing than helpful until you’ve done some coding and intuitively realise there’s nothing to it.
What you probably want to do right now is have your List Filter send the playlist name as the argument, then have a Run Script Action with language set to /usr/bin/osascript (AppleScript) and code (untested):on run argv tell application "Music" to play playlist (item 1 of argv) end run
-
12 minutes ago, deanishe said:
You should always use an API where possible, and Music.app has one.
@Saez To find those, you open a new document in Script Editor then File → Open Dictionary… → chose the app in question.
-
53 minutes ago, Undertaker01 said:
I'm running into some conflicting shortcuts in some of the new workflows I downloaded
To find conflicts, you can right-click the Hotkey objects: -
2 hours ago, ecstaticax said:
IT WORKED
Glad to read that!2 hours ago, ecstaticax said:- update .zshrc with path to newest ruby
That’s not necessary and won’t do anything regarding the Workflow.2 hours ago, ecstaticax said:- eventually update workflow path to google drive in global enviroment variable.
That’s also not necessary for most people nor ARM specific. That is part of the Workflow instructions. -
Don’t edit the path in the code, that’s what the Workflow Environment Variable is for.
-
6 minutes ago, ecstaticax said:
modified your script to execute that version
Note that change will be overwritten on Workflow updates. But it’s stable now and all reported kinks have been ironed and feature requests implemented, so there’s no plans for updates in the near future.
8 minutes ago, ecstaticax said:placed in /usr/local/opt
Using the gem command from that ruby, you have to gem install sqlite3.
-
Just now, ecstaticax said:
Is there anyway I can manually correct Ruby?
Don’t worry about it until we know if it’s a problem. But if it is a problem, you likely can’t fix it without a full reinstall. The problem seems rare so there’s sparse information online.
-
@ecstaticax You are posting in the wrong place, the Workflow’s thread is another. Its first post explains how to set your Google Drive path, and the second explains how you can find out what it is if you set it to an atypical location.
You also seem to have a possibly broken Ruby installation. If that will be a problem is early to see, but it wouldn’t be surprised if the culprit were the restoring from backup. Apple doesn’t seem to have tested migrating machines from one architecture to another nearly enough, nor would I ever trust them to even do an acceptable job at it.
-
-
@Skorpion Hope you don’t mind. Some users are not finding this post and making duplicates, so I have edited the title to be more search friendly and added a link to the post with the solution. I strived to make it as clear as possible where my edit starts and ends. The rest of your post was unaltered.
-
Migration Assistant is affecting a lot of people this time around, Alfred users and not.
This is already being addressed at length on another thread. In particular, check this post.
If you have further questions, please ask there so as to not split the conversation. -
Usage
Search through thousands of Netflix genres via the flixgen keyword. ↩ to open in the default web browser.
⤓ Install on the Alfred Gallery | Source -
@az566 That has been addressed quite a few times in the thread, already. It’s also covered in the top post, fairly near the top. In sum, you need to install PHP via Homebrew. The linked posts go into detail.
-
I have no idea why you have such a complicated setup. The code above works fine for multiple files and directories and has no issue with unicode characters.
-
Spent more time with it, and JXA suffers from a bug (I had encountered it before in the context of deleting) where one can only act on one file, multiple files, or one directory. If there is a directory in the list and one other path, it breaks. But regular AppleScript can do it:
on run argv set pathList to {} repeat with pathString in argv copy ((POSIX file pathString) as alias) to the end of the pathList end repeat tell application "Finder" to select pathList end run
Low Power Mode — Toggle Low Power Mode for Battery or Power Adapter
in Share your Workflows
Posted
When reporting issues, please include your exact installed versions of:
In addition to:
Thank you. Accurate and thorough information is crucial for a proper diagnosis which allows me to help you better.