• 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: moving a folder in os X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: moving a folder in os X


  • Subject: Re: moving a folder in os X
  • From: Craig Sutherland <email@hidden>
  • Date: Tue, 12 Mar 2002 16:14:44 -0600

Paul-

I believe that you are running into permissions/privileges of the System. Root is the owner and has sole read/write permissions to the System folder in OS X.

You could explore the "do shell" command in Scripting additions. There is the capability to have system administrator (root) privileges as one of "do shell"'s parameters.

Here is a suggestion:

set theFolder to (choose folder)
set pPath to POSIX path of theFolder
do shell script " mv " & pPath & " /System/" with administrator privileges.

There is a space after mv and before the first right slash in /System/. To get the proper syntax for mv, type man mv in the Terminal.

As always when using admin privileges, save a bullet for yourself.

HTH

Crai9g


On Tuesday, March 12, 2002, at 01:46 PM, Paul Popovich wrote:

Hey all,
I'm using the following droplet script for moving a folder:

on open (folderRef)
tell application "Finder"
set destinationRef to (path to system folder)
move folderRef to destinationRef
end tell
end open

When I actually drop the folder onto it, I get the following message:
"item <<folder_name>> is used by Mac OS X and cannot be opened."
anybody know what I'm doing wrong here?
Regards,
Paul.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >moving a folder in os X (From: "Paul Popovich" <email@hidden>)

  • Prev by Date: A Difference of Months
  • Next by Date: Re: Questions questions...
  • Previous by thread: moving a folder in os X
  • Next by thread: FMPro Image Import - more info
  • Index(es):
    • Date
    • Thread