阅读850 返回首页    go iPhone_iPad_Mac_apple


Applescript Do Shell Script Call Subroutine

I utilize the following AppleScript to backup and shutdown the laptop upon the completion of the backup.

 

do shell script "tmutil startbackup -b && shutdown -h now" with administrator privileges

 

What I would like to do is make a call to a subroutine that sends an email message between the backup and shutdown.  I have a subroutine named "send_email_msg" which does send a message but I'm unsure how to incorporate the call to the subroutine in the shell script.



最后更新:2017-09-22 02:35:50

  上一篇:go Finder: disable confirmation pop
  下一篇:go apple watch update not showing up