Re: How can I set permissions on shared source files?
Re: How can I set permissions on shared source files?
- Subject: Re: How can I set permissions on shared source files?
- From: Julian Vrieslander <email@hidden>
- Date: Sat, 31 Jul 2004 01:52:58 -0700
- Fnork: garbanzo
On 7/30/04 11:23 PM, "Chris Hanson" <email@hidden> wrote:
> This is exactly the problem that revision/version control systems were
> created to solve. It would be very, very well worth your team's time
> to learn a common and well-supported revision control system, and
> implement it for your project. In fact, I think your team's time would
> be far better spent learning how to set up and use a revision control
> system than trying to figure out a way to use a shared filesystem for
> it.
I would like to learn about VC systems eventually, for my own benefit. But
my colleagues are fiercely resistent to change - it is very hard for me to
convince them to learn new programs. And we are all hard-pressed for time.
For now, I am considering a brute force approach. I wrote a simple
AppleScript droplet. Drag a folder full of files on it, and the script sets
universal read/write access for all contained items. I know that this
script could be dangerous if used on the wrong things. But I would use it
only on projects and documents that I need to share. The source is pasted
below. If anyone is willing to look at this code and tell me if there are
potential dangers in using it as I described, I would be very grateful.
on open these_items
repeat with i from 1 to the count of these_items
set this_item to (item i of these_items)
set item_path to quoted form of (POSIX path of this_item)
set the item_info to info for this_item
if folder of the item_info is true then
do shell script "chmod -R ugo+rw " & item_path
else if (alias of the item_info is false) then
do shell script "chmod ugo+rw " & item_path
end if
end repeat
end open
--
Julian Vrieslander <email@hidden>
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.