Re: Why doesn't this script work?
Re: Why doesn't this script work?
- Subject: Re: Why doesn't this script work?
- From: Laine Lee <email@hidden>
- Date: Fri, 02 Nov 2007 22:42:07 -0500
- Thread-topic: Why doesn't this script work?
On 11/2/07 6:24 PM, "Christopher Nebel" <email@hidden> wrote:
> Permissions is a good guess, since at least on my system, that file is
> only writable by root.
OK, and why doesn't this script work?
property newline : ASCII character 10
property tmpfile : "/tmp/execme"
set theshellscript to "#!/bin/sh " & newline & "osascript -e \"tell
application \\\"System Events\\\"
tell property list file
\\\"dora:System:Library:LaunchDaemons:com.apple.backupd-auto.plist\\\"
set value of property list item 4 of it to 7200
end tell
end tell\""
do shell script "echo
" & quoted form of theshellscript & " > " & tmpfile
do shell script "chmod +x" & space & tmpfile
do shell script tmpfile & space & "> /dev/null 2>&1 &" with administrator
privileges
--
Laine Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden