Laluna Posted July 22, 2021 Posted July 22, 2021 (edited) Hi everyone, I want to create a workflow that copies the current incoming call and then checks it against several different websites here in Sweden. I've been reading for a whole day now on how to copy notification information and try to set a value on it. However I'm dumb and can not seem to figure it out. I'm fairly new to scripting and trying to understand workflows, but I already see that Alfred has so much potential, especially when using powerpack and scripts. I would be so happy if i got help from someone that understands applescript a bit better so it actually copies the right information (the number of the unknown incoming call that's in the notification centre). And how i can take that value and use against search services trough workflow (i have already set up a flow where i can manually enter the number but would to improve it). I have started to test if i actually copy the right information from the notification centre by using automator, but i don't really know how to test it and check the value: tell application "System Events" set Nummer to get value of static text of scroll area 1 of window 1 of process "NotificationCenter" end tell Thereafter I'm curious about how i can the take the variable information and use it as input information for a search (on a pre-set website) What would you guys think is the best idea? If anyone would be interested in helping me with this so i can tro to release it here during my vacation, i would be truly grateful // PRS Edited July 22, 2021 by Laluna spelling
vitor Posted July 24, 2021 Posted July 24, 2021 return Nummer will do it. But you don’t need to save the variable (set Nummer to) if all you’re doing it passing the value along. Do instead return value of static text of scroll area 1 of window 1 of process "NotificationCenter".
alfredpanda Posted July 24, 2021 Posted July 24, 2021 @Laluna I love this idea! Please do share it if you crack it 🙏
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now