- Joined
- Jun 1, 2009
- Messages
- 2
- Reaction score
- 0
- Points
- 1
Hi,
Is there a way to make the attached script run everytime a file is added to a certain folder? Basically the script changes the permissions of the file to RW RW RW so i am trying to make it do this to the file automatically when it is added to a certain folder on my computer? Thanks!
on open these_items
repeat with i from 1 to the count of these_items
set this_item to item i of these_items
tell application "Finder" to reveal this_item
set this_path to the quoted form of the POSIX path of this_item
do shell script "chmod a+w" & space & this_path
end repeat
end open
Is there a way to make the attached script run everytime a file is added to a certain folder? Basically the script changes the permissions of the file to RW RW RW so i am trying to make it do this to the file automatically when it is added to a certain folder on my computer? Thanks!
on open these_items
repeat with i from 1 to the count of these_items
set this_item to item i of these_items
tell application "Finder" to reveal this_item
set this_path to the quoted form of the POSIX path of this_item
do shell script "chmod a+w" & space & this_path
end repeat
end open