Jump to content
Sign in to follow this  
jm1982

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

Share this post


Link to post

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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
×
×
  • Create New...