smirky Posted May 2, 2013 Share Posted May 2, 2013 Is there a way to access the user's setting for default notifications (Growl or Notification Center) while executing script in a workflow? (I use applescript, if that helps...) I know there are workarounds I could use to output to the default notification setting, but it got me thinking if it was possible anyway. Thanks! Link to comment
jdfwarrior Posted May 2, 2013 Share Posted May 2, 2013 Is there a way to access the user's setting for default notifications (Growl or Notification Center) while executing script in a workflow? (I use applescript, if that helps...) I know there are workarounds I could use to output to the default notification setting, but it got me thinking if it was possible anyway. Thanks! It CAN be done. It would require reading the info.plist file within the workflow's folder. You would have to search for an item with a type = alfred.workflow.output.notification. From there, you would check the output value. I believe that a notification would be equal to 0, and growl would equal 1. Link to comment
smirky Posted May 2, 2013 Author Share Posted May 2, 2013 It CAN be done. It would require reading the info.plist file within the workflow's folder. You would have to search for an item with a type = alfred.workflow.output.notification. From there, you would check the output value. I believe that a notification would be equal to 0, and growl would equal 1. Wow. Can't believe I didn't think of that already. Thanks for the tip Dave! Link to comment
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