sosaveme
-
Posts
25 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by sosaveme
-
-
6 hours ago, DrDannySands said:
Hi. Just found this workflow on the Alfred Gallery and it looks pretty great. But I can't get it to work. I am using version 2.16.1 of workflow. I requested and activated an API key but it seems to be an 8-digit number, is that correct? When I use the workflow, every time I only see the message "Uh oh, something went wrong."
What am I doing wrong?
Same issue. Is it possible to fix?
-
8 minutes ago, TomBenz said:
Hope @vitor or other experts will get to answer mine as well as your question.
Don't think it's possible because Apple allow move spaces only with trackpad gestures.
-
6 hours ago, TomBenz said:
You can use Automation tasks to create a workflow for this. Steps are keyword or shortcut to trigger --> key combo (ctrl + command + F) to move the window out of full screen mode, move to next monitor and again make the app full screen.
Thanks! Sadly but this method doesn't work properly for safari full screen video, because it's move whole safari
-
Is it possible to move fullscreen app or fullscreen video?
-
Hey! Is it possible to write a workflow to control Background sounds (turn it off and on) (Accessibility -> Audio -> Background sounds)? I didn't find anything in Shortcuts or Apple Script.
-
Thanks you very much! It's seems to be working.
-
Hello, everyone! Is it possible to run Alfred 5 workflow through AppleScript within Alfred 5 workflow?
I have a workflow with script and I need something like this, but I don't know how to do it.
on run argv
tell application "Tunnelblick" set VPN to (get state of configurations) if VPN contains "CONNECTED" then
else
tell application "Alfred" to run the workflow named "Test" end if
end tell end runThanks!
-
Made it. Need no help anymore.
-
So, what I want:
I need the script to simultaneously check the status of four VPNs and if at least one is connected, it would do nothing, but if all are disabled, it would launch the shortcut. But now the script checks the state of VPNs one by one, and it launches the shortcut over and over again. Can you please help me?
Screenshot (Alfred): https://ibb.co/Kj0F3cp
My script:
on run argv
set VPN1 to (system attribute "vpn\_to\_toggle1")set VPN2 to (system attribute "vpn\_to\_toggle2")
set VPN3 to (system attribute "vpn\_to\_toggle3")
set VPN4 to (system attribute "vpn\_to\_toggle4")
tell application "Tunnelblick"
set status to get state of first configuration where name = VPN1
if (status = "CONNECTED") then
else
tell application "Shortcuts" to run the shortcut named "Random"
end if
end tell
tell application "Tunnelblick"set status to get state of first configuration where name = VPN2
if (status = "CONNECTED") then
else
tell application "Shortcuts" to run the shortcut named "Random"
end if
end tell
tell application "Tunnelblick"set status to get state of first configuration where name = VPN3
if (status = "CONNECTED") then
else
tell application "Shortcuts" to run the shortcut named "Random"
end if
end tell
tell application "Tunnelblick"set status to get state of first configuration where name = VPN4
if (status = "CONNECTED") then
else
tell application "Shortcuts" to run the shortcut named "Random"
end if
end tell
end run -
Thanks! Everything is working.
-
49 minutes ago, vitor said:
Look into System Settings → Privacy & Security → Automation. You probably haven’t allowed Alfred to control Tunnelblick there.
But don’t use NSAppleScript for this, use a Run Script with /usr/bin/osascript (AppleScript) as the language, like NSAppleScript itself suggests right at the top.Alternatively, there are Automation Tasks for this.
Thank you very much, now Alfred asks Tunnelblick privacy.
Maybe you can help me with script writing? I tried myself this:
on run argv
if application "Tunnelblick" is not running then
open application "Tunnelblick"
if application "Tunnelblick" is running then
tell application "Tunnelblick" to quit
end if
end runGot this:
[22:04:29.459] ERROR: VPN Toggle - COPY[Run Script] /Users/****/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/4435190E-A2DA-4424-9016-AB038A46DFB6:191:194: script error: Expected “if”, etc. but found command name. (-2741)
I need this: if Tunnelblick is not running then open it, but if it's already running then quit it.
-
Hello, everyone! I'm trying to write a script to close specific app (if it open) and open specific app (if it doesn't open) but fail every time.
What I do:
1. create NSAppleScript
2. Script:
on alfred_script(q)
if application "Tunnelblick" is running then
tell application "Tunnelblick" to quit
end if
end alfred_scriptWhat I get:
[20:40:12.767] ERROR: VPN Toggle[Run NSAppleScript] {
NSAppleScriptErrorAppName = Tunnelblick;
NSAppleScriptErrorBriefMessage = "Not authorized to send Apple events to Tunnelblick.";
NSAppleScriptErrorMessage = "Not authorized to send Apple events to Tunnelblick.";
NSAppleScriptErrorNumber = "-1743";
NSAppleScriptErrorRange = "NSRange: {103, 4}";But with Telegram it works! Why I can't quit Tunnelblick but can quit Telegram?
-
Alfred4 (PowerPack), MacOS 12.5 (the latest). The Issue is still here. The laptop worked all night and nothing has changed: indexing still continues and loads my macbook. Any solutions? I think it's better to stop indexing right now (don't know how), remove all indexing files (don't know how) and indexing everything again (don't know how).
New Information: I guess it's my external HDD. I turn it out and indexing stopped. Do I need waiting or it's an issue?
New information 2: So, I added my external HDD to the Spotlight privacy. Could you give me a right instruction for total reindexing my Macbook and external HDD to fix any issue with spotlight indexing? I Want to delete every Spotlight file and indexing it again right.
-
Hey everyone! Couple days ago Alfred just stopped searching any files. I did this: https://www.alfredapp.com/help/troubleshooting/indexing/ (Did all steps and Rebuild macOS Metadata) And now I got infinity spotlight indexing. It's about a day already. mds is using CPU. What should I do? My Mac is MacBook Air M1 8GB
-
Very useful. Thank you very much!
-
Nah, I think I'm fine without this workflow. But still thanks. The idea is great!
-
Hello!
"Allow JavaScript from Apple Events" Is it potentially dangerous?
-
-
Solved by OpenIn but still interesting in Alfred solution.
-
Hello! My default browser is Safari, but I want to open my custom searches in Chrome instead Safari. Is it possible in free version? If not, any possibilities? Thanks you!
-
9 minutes ago, deanishe said:
Hi @sosaveme, welcome to the forum.
I don't know what the exact pattern is, but I can tell you that it's not Alfred.
Alfred just asks macOS (or an application) to open a link. How the application behaves (new tab, new window etc.) is up to the application itself.
Sad to hear that. I bought a MacBook Air M1 a month ago and so far MacOS seems like a big disappointment to me
-
Hello everyone! I'm a new in using Alfred and I need to be clarified about some Alfred behaviour. In my routine Safari exists in the "Desktop 2" and open all the time. I prefer using only 1 Safari window. And when I'm trying to find something through Alfred (using web search keyword: g something) the result opens in the new Safari window instead opens it in the current. Why so? But this does not always happen, I was unable to trace the pattern. Can anyone help me?
Thanks!
P.S. Sorry for english, not my native.
Movie and TV Show Search
in Share your Workflows
Posted · Edited by sosaveme
[19:29:01.797] Logging Started...
[19:29:02.976] Movie and TV Show Search[Script Filter] Queuing argument 'friends'
[19:29:03.780] Movie and TV Show Search[Script Filter] Queuing argument 'fr'
[19:29:03.964] Movie and TV Show Search[Script Filter] Script with argv 'fr' finished
[19:29:03.967] STDERR: Movie and TV Show Search[Script Filter] https://api.themoviedb.org/3/search/tv?api_key=0ebad901a16d3bf7f947b0a8d1808c44&query=fr&search_type=ngram&language=en
<urlopen error [Errno 61] Connection refused>
[19:29:03.969] Movie and TV Show Search[Script Filter] {"items": [{"title": "Uh oh... something went wrong", "subtitle": "Please check your internet connection."}]}
[19:29:04.832] Movie and TV Show Search[Script Filter] Queuing argument 'friends'
[19:29:05.013] Movie and TV Show Search[Script Filter] Script with argv 'friends' finished
[19:29:05.020] STDERR: Movie and TV Show Search[Script Filter] https://api.themoviedb.org/3/search/tv?api_key=0ebad901a16d3bf7f947b0a8d1808c44&query=friends&search_type=ngram&language=en
<urlopen error [Errno 61] Connection refused>
[19:29:05.023] Movie and TV Show Search[Script Filter] {"items": [{"title": "Uh oh... something went wrong", "subtitle": "Please check your internet connection."}]}
Strange thing, I can't open themoviedb.org even with shadowsocks VPN. But it opens with Tor.
P.S. Don't have Python 3