Copy to shared folder with correct permissions?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

I am working on getting two photostreams into one iPhoto library. Works well except for a permissions problem.

We have 3 accounts on our mac, mine, wife's and Media. iPhoto library is in Media. I have turned on photostream for my and wife's account.

I have a rule to copy the photostream files to /Users/Shared/test folder.

Problem is when Hazel tries to import the photos into iPhoto, it can't open the jpgs - no permission.

I have tried to change the permissions of the 'test' folder to allow the 'media' user to have full permissions, but but each photo copied can't be opened by 'media'.

Suggestions?
edalzell
 
Posts: 13
Joined: Wed Oct 29, 2008 11:43 pm

My current idea is to change the permission via a shell script. This is not working however.

The shell script is 'chmod 755 $1'.

I get this:
Code: Select all
2012-11-04 22:17:08.151 hazelworker[38407] IMG_0396.JPG: Rule Change Permissions matched.
2012-11-04 22:17:08.231 hazelworker[38407] [Error] Shell script failed: Error processing shell script on file /Users/Shared/Photostream Photos - Erin/IMG_0396.JPG.
2012-11-04 22:17:08.232 hazelworker[38407] Shellscript exited with non-successful status code: 1


Help please
edalzell
 
Posts: 13
Joined: Wed Oct 29, 2008 11:43 pm

I'm guessing you don't have permissions to change the permissions. You should look into setting up a group and setting the group permissions appropriately.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:I'm guessing you don't have permissions to change the permissions. You should look into setting up a group and setting the group permissions appropriately.


I can run the command from the terminal with no problems though from my user. What user does Hazel run under?
edalzell
 
Posts: 13
Joined: Wed Oct 29, 2008 11:43 pm

Oh wait, looking at it again, you need to put quotes around $1 as the path in question has a space in it. Give that a shot and report back.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Oh wait, looking at it again, you need to put quotes around $1 as the path in question has a space in it. Give that a shot and report back.


I bet that's the culprit. I'll try again when I get home tonight, thanks.

A suggestion: mention that (that you have to quote it) right in the rule creation somewhere. Might reduce support questions from dummies like me!
edalzell
 
Posts: 13
Joined: Wed Oct 29, 2008 11:43 pm

Under consideration though there are always edge cases so it's hard to make blanket statements. Also, I'd have to research how it's done across all the other scripting languages for consistency's sake.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron