• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fw: Folder Action for changing privileges
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fw: Folder Action for changing privileges


  • Subject: Fw: Folder Action for changing privileges
  • From: Brett Conlon <email@hidden>
  • Date: Wed, 27 Jun 2007 14:35:26 +1100


Any takers on my little script below?

Ta muchly,

Coj

----- Forwarded by Brett Conlon/HU/AU/SonyDADC on 27/06/07 01:31 PM -----
Brett Conlon/HU/AU/SonyDADC

25/06/07 04:14 PM

To
Apple Script
cc
Subject
Folder Action for changing privileges




Hi all,

For some time now I've been successfully using a script application bundle for changing the permissions of the folder contents dropped onto it and today I tried making it into a folder action and, while it is successfully running, the permissions aren't changing. Here's the code:

on adding folder items to theFolder after receiving theAddedItems
        try
                repeat with thisItem in theAddedItems
                        set FilePath to quoted form of POSIX path of thisItem
                        do shell script "chmod -R 777 " & FilePath
                end repeat
                display dialog "Permissions changed successfully." buttons {"Thanks!"} default button 1
        on error
                display dialog "Changing permissions failed. Please try it manually" buttons {"OK"} default button 1
        end try
end adding folder items to

As a test, I set the "Other" privileges on all contents of a folder to "No access" then dropped it into the folder (with the action set to it) and the "success" message appears but permissions are the same. If I drop the same folder onto my bundle app (with same code) the "Others" permission correctly sets to "Read/write".

All assistance would be most appreciated!

Cheers,

Cojcolds
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: that slow script I had a week or so ago
  • Next by Date: Re: that slow script I had a week or so ago
  • Previous by thread: Re: Folder Action for changing privileges
  • Next by thread: Safari calling applescripts automatically?
  • Index(es):
    • Date
    • Thread