• 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: Copy files into /private/var/ with Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy files into /private/var/ with Applescript


  • Subject: Re: Copy files into /private/var/ with Applescript
  • From: Emmanuel Levy <email@hidden>
  • Date: Tue, 31 Mar 2009 21:09:49 +0200

At 1:56 PM -0400 3/31/09, Wenping Yang wrote:
Hello,

I try to copy a few files into /private/var, I wonder how to use
applescript to check/enable root, and copy the files without letting
user open a terminal window.
Any suggestions would be appreciated.

If I did not use Files.osax, I would try use the shell:

do shell script "cp src dst" with administrator privileges

(I'm not sure about the "cp" part)

Emmanuel
_______________________________________________
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
References: 
 >Moving large PDF files with Applescript (From: "Mielke, Gary R (CGC)" <email@hidden>)
 >Copy files into /private/var/ with Applescript (From: Wenping Yang <email@hidden>)

  • Prev by Date: Re: Moving large PDF files with Applescript
  • Next by Date: Re: Moving large PDF files with Applescript
  • Previous by thread: Copy files into /private/var/ with Applescript
  • Next by thread: Re: Moving large PDF files with Applescript
  • Index(es):
    • Date
    • Thread