Skip to main content
added 143 characters in body
Source Link
grg
  • 209k
  • 46
  • 375
  • 507

AppleScript should let you do this by using with administrator privileges:

osascript -e 'do shell script "sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist" with administrator privileges'

This doesn't pass the password, but prompts for it with a standard OS X prompt:

You can use this in your Automator workflow in one of the two following ways:

AppleScript should let you do this by using with administrator privileges:

osascript -e 'do shell script "sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist" with administrator privileges'

This doesn't pass the password, but prompts for it with a standard OS X prompt:

AppleScript should let you do this by using with administrator privileges:

osascript -e 'do shell script "sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist" with administrator privileges'

This doesn't pass the password, but prompts for it with a standard OS X prompt:

You can use this in your Automator workflow in one of the two following ways:

added 46 characters in body; added 5 characters in body
Source Link
grg
  • 209k
  • 46
  • 375
  • 507

AppleScript should let you do this by using with administrator privileges:

osascript -e 'do shell script "sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist" with administrator privileges'

This doesn't pass the password, but prompts for it. This doesn't pass the password, but prompts for it with a standard OS X prompt:

AppleScript should let you do this by using with administrator privileges:

osascript -e 'do shell script "sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist" with administrator privileges'

This doesn't pass the password, but prompts for it.

AppleScript should let you do this by using with administrator privileges:

osascript -e 'do shell script "sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist" with administrator privileges'

This doesn't pass the password, but prompts for it with a standard OS X prompt:

Source Link
grg
  • 209k
  • 46
  • 375
  • 507

AppleScript should let you do this by using with administrator privileges:

osascript -e 'do shell script "sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist" with administrator privileges'

This doesn't pass the password, but prompts for it.