• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why doesn't this script work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Why doesn't this script work?
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Why doesn't this script work? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: prevent user input question
  • Next by Date: Re: Why doesn't this script work?
  • Previous by thread: Re: Why doesn't this script work?
  • Next by thread: Re: Why doesn't this script work?
  • Index(es):
    • Date
    • Thread