applescript/automator to change folder permissions?

Discussion in 'macOS' started by shecky, May 13, 2008.

  1. shecky Guest

    shecky

    Joined:
    May 24, 2003
    Location:
    Obviously you're not a golfer.
    #1
    i know zero about applescript and automator.

    my partner and i swap folders of files back and forth regularly. when she drops a folder into my drop box, i need to do a 'get info' on the folder, hit the plus sign and the bottom, enter my password, add myself to the list of names, make my permissions read+write, and then apply to all enclosed items. i end up doing this 20 times a day.

    is there a script or action i can have to do it in one click?

    thanks!!
     
  2. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #2
    Code:
    #!/bin/sh
    
    /bin/chmod -R u+wr "/Users/shecky/Public/Drop Box/"
    /bin/echo Done.
    Assuming "shecky" is your username, change accordingly.

    Save it as whateverfilename.command and then you can double click it in the Finder to run the shell script.

    EDIT: But you have to make it an executable first..

    chmod u+x /Users/shecky/whereever/the/file/is/whateverfilename.command
     

Share This Page