Jump to content

Workflow for maintenance mac os script


Recommended Posts

Hello,

 

Can anybody tell me what i have to do to start the maintenance scripts with an workflow ?

 

I mean the sudo periodic daily, weekly, monthly scripts.

 

 

 

Sorry for the bad english !!!!!!!!!

 

Best Regards

 

jm1982

Link to comment

Hello,

 

Can anybody tell me what i have to do to start the maintenance scripts with an workflow ?

 

I mean the sudo periodic daily, weekly, monthly scripts.

 

 

 

Sorry for the bad english !!!!!!!!!

 

Best Regards

 

jm1982

 

Create a workflow using the Template->Essentials->Keyword to Applescript to Notification template. Double click the keyword, and set the keyword for the script that you wish to run. Save all those settings then move to the Applescript piece. Inside the code block (it's marked where you should insert your code, add the Applescript code...

do shell script "<insert command to run script>" with administrator privileges

Replace the <insert command to run script> part with the actual command you would use at the terminal to run the script.

 

That should get you going.

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...