Jump to content

Get the user's setting for 'default notification' while within a workflow?


Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...