Go Back   The Apple Blog Community > Apple/Mac > Development
Register Social Groups iSpy Members List Search Today's Posts Mark Forums Read FAQ

Development XCode, Cocoa, and all other development

Reply
 
LinkBack Thread Tools Search this Thread
05-13-2008   #1 (permalink)
Mac Genius
 
philbowell's Avatar
 
Join Date: Dec 2006
Location: Nottingham, UK
Posts: 907
philbowell is on a distinguished road
Send a message via AIM to philbowell Send a message via Yahoo to philbowell Send a message via Skype™ to philbowell
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?
__________________
My Mac's: 20" iMac Core Duo with 2gb RAM; 14" iBook G4
My Blog
philbowell is offline   Reply With Quote
Sponsored Links
06-03-2008   #2 (permalink)
Operator
 
Join Date: Jun 2008
Posts: 1
MrFancypants has disabled reputation
I have the exact same problem and am a little disappointed no one has an answer!
MrFancypants is offline   Reply With Quote
06-04-2008   #3 (permalink)
Personal Shopping Specialist
 
lonnie's Avatar
 
Join Date: Dec 2006
Location: -TeXaS-
Posts: 283
lonnie is on a distinguished road
Send a message via AIM to lonnie
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
lonnie is offline   Reply With Quote
06-04-2008   #4 (permalink)
Personal Shopping Specialist
 
Equin's Avatar
 
Join Date: Dec 2006
Location: Norway
Posts: 301
Equin is on a distinguished road
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..
Equin is offline   Reply With Quote
06-04-2008   #5 (permalink)
Mac Genius
 
philbowell's Avatar
 
Join Date: Dec 2006
Location: Nottingham, UK
Posts: 907
philbowell is on a distinguished road
Send a message via AIM to philbowell Send a message via Yahoo to philbowell Send a message via Skype™ to philbowell
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.
__________________
My Mac's: 20" iMac Core Duo with 2gb RAM; 14" iBook G4
My Blog
philbowell is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -6. The time now is 12:54 AM.




Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5
© 2004-2008