Adding File Permissions Change
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