|
|||||||
| Development XCode, Cocoa, and all other development |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
| 05-13-2008 | #1 (permalink) |
|
Mac Genius
|
At work I regularly have to get a file or folder of files from our server. The problem is that when the files are copied from the server to my Mac the permissions are set to read only. It's a bit of a pain to have to go into Get Info on each file and set it to read & write.
I wondered if it was possible to make a Finder plugin (using Automator?) to get a contextual menu to change the permissions automatically? Unfortunately I don't know how I can set the permissions of a file in Finder, I thought I could use the "get selected finder item" action and the move to a run script action but it's the script I need.. I've tried to hunt out an Automator action but can't find one. Can anyone help? |
|
|
|
| Sponsored Links | |
|
|
|
| 06-04-2008 | #3 (permalink) |
|
Personal Shopping Specialist
|
Put all the files into a main folder and get info on the folder
You can then set the permissions one time on the folder and choose the option "apply to enclosed items" You'll need the admin password once you choose apply. But it will work on all the files.
__________________
2.4 GHz Intel Core 2 Duo 20" new slim black back iMac with 4 GB RAM | McKinleyBrown |
|
|
|
| 06-04-2008 | #4 (permalink) |
|
Personal Shopping Specialist
Join Date: Dec 2006
Location: Norway
Posts: 301
![]() |
Make a shell script that you run via Automator..
chmod +rw filename .. sets filename to read/write for everyone.. chmod -R +rw directory .. sets directory and all subfiles/directores to read/write for everyone.. |
|
|
|
| 06-04-2008 | #5 (permalink) |
|
Mac Genius
|
Sorry I should've posted that I found a solution similar to Equin's. It looked slightly different and I may change it to match to use his as I understand it a little better.
To put the Finder plugin together, in Automator use the Finder action get selected file and then use the run shell script action and type one of the two lines of code into it. Then save it as a plugin for the Finder. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|