Comments (3)
Hi @pictosun, thank you for reporting this. I assumed that /usr/bin/swift
is available by default on Macs these days. This might not be the case, though 🤔
Which Mac, Mac OS version, and Alfred version are you using?
There might be a solution, but I am not 100% sure yet. – Alfred Workflows also support /usr/bin/swift
scripts now. Maybe Alfred takes care of installing the requirements, if I use this type of script (currently using /bin/zsh
, calling a Swift script).
Could you please do me a favor and test this for me? – I have created a small workflow. If it works on your machine, I might be able to convert my workflow to use this approach. Alfred Swift Test.zip
Thanks a lot,
Tobi
from alfred-audio-switcher.
Hi @TobiasMende
Thanks for your feedback. I'm using MacBooks M1, M2, M3 (Sonoma 14.4.1), Alfred 5.5 (2257).
When testing your workflow I get this answer.
from alfred-audio-switcher.
Hi @pictosun, thanks for sharing. I think we won't get around the need to install Swift (via the developer tools) – I am not aware that apple allows to access the API that I am using for fetching and setting the devices could be used by any other means (like a scripting language).
The other options are: Installing unsigned third party tools or using AppleScript to navigate through the System Settings (if that even is still possible) – Both solutions are not great and also slower than the approach via the native APIs.
I wish to have another answer, but at this point I don't think there is a better option besides installing the developer tools.
from alfred-audio-switcher.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alfred-audio-switcher.