Re: Script to set a folder's contents to Read/Write - PROBS
Re: Script to set a folder's contents to Read/Write - PROBS
- Subject: Re: Script to set a folder's contents to Read/Write - PROBS
- From: Brett Conlon <email@hidden>
- Date: Wed, 8 Mar 2006 10:07:25 +1000
OK, to kinda answer my own question
but raise another I changed the shell scrip to:
chmod -R 777 filepath...
The folders permissions are now changing
in 10.3.9 but not in my new 10.4.5 setup <sigh>.
What is required to make this totally
effective?
Ta,
Coj
This is what I have so far:
on
open (Folderz)
tell
application "Finder"
try
repeat
with
thisFolder in
Folderz
set
filePath to
quoted form of
POSIX path of
thisFolder
do shell script "chmod -R 777 "
& filePath
end
repeat
display
dialog "Permissions changed successfully." buttons {"Thanks!"}
default button 1
on
error
display
dialog "Changing permissions failed. Please try it manually"
buttons {"OK"} default button 1
end
try
end
tell
end
open
on
run
tell
application "Finder"
try
set
aFolder to
choose folder with prompt "Please choose a folder to process"
set
filePath to
quoted form of
POSIX path of
aFolder
do shell
script "chmod -R 777 " & filePath
display
dialog "Permissions changed successfully." buttons {"Thanks!"}
default button 1
on
error
display
dialog "Changing permissions failed. Please try it manually"
buttons {"OK"} default button 1
end
try
end
tell
end
run
Brett Conlon <email@hidden>
Sent by: applescript-users-bounces+brett.conlon=email@hidden
07/03/06 05:20 PM
|
To
| email@hidden
|
cc
|
|
Subject
| Re: Script to set a folder's contents
to Read/Write - PROBS |
|
Hmmm, so after a few further tests it isn't working as good as I was hoping...
<8-{
I have a folder which I manually set to:
Owner (design):RW
Group (design):No Access
Others: No Access
The script, when run on that folder, doesn't change group or others to
R/W. They stay No Access.
I then tried incorporating Stan's AppleScript "way" of doing
it and the folder privileges still didn't change. I then tried the following
command in Terminal:
sudo chmod -R ugo+rw ...path name
... entered my password and the folder still remained as above - all the
files within it are changing but not the dropped folder nor any folders
in it.
How do I get this to explicityly apply R/W to all files/folders throughout?
Cheers,
Coj
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden