• 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
Adding File Permissions Change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding File Permissions Change


  • Subject: Adding File Permissions Change
  • From: Tom Thompson <email@hidden>
  • Date: Thu, 30 Oct 2008 15:30:17 -0700
  • Thread-topic: Adding File Permissions Change

Applescript Experts,

I have a script that I use to move items from one folder to another that
works great. Occasionally a file does not have the proper permissions
though. How can I add to this applescript to change the file permissions on
the file being copied to read/write for all?

Thanks, Tom


property destFldr : missing value

on run
    set destFldr to (choose folder with prompt "Select the destination
folder:")
end run

on adding folder items to srceFldr after receiving newItems
    try
        tell application "Finder"
            repeat with anItem in newItems
                move anItem to destFldr with replacing
            end repeat
        end tell
    on error errMsg number errNbr
        display dialog "Folder action on " & (name of srceFldr) & " has
failed." & return & return & "Error number: " & errNbr & return & "Error
message: " & errMsg buttons {"Cancel"}
    end try
end adding folder items to

 _______________________________________________
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

  • Follow-Ups:
    • Re: Adding File Permissions Change
      • From: Philip Aker <email@hidden>
References: 
 >Re: Ejecting An Image Disk (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Ejecting An Image Disk
  • Next by Date: Re: Adding File Permissions Change
  • Previous by thread: Re: Ejecting An Image Disk
  • Next by thread: Re: Adding File Permissions Change
  • Index(es):
    • Date
    • Thread