Here is what I am trying to do, first off new to AppleScripting (duh), I have a server running 10.3 and have sharepoints set up which act as file repositories, have a tape drive that we pull archives off and put into a sharepoint.
The issue is that I want to create a script that will be a folder action when files are taken off the tape archive and placed into that folder with the script attached, will automatically run the “chown -R 777” command so that the premissions of the file placed in the folder is changed always to “RWX”.
Any input and or point in the right direction would be greatly appreciated.
Thanks in advance.[/b]
Something like this should work:
[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]
Camelot was nice enough to help with my problem, thanks a bunch, however I still have a few questions. Here is the script Camelot provided as a starting point:
on adding folder items to theFolder after receiving theAddedItems
repeat with eachItem in theAddedItems
set filePath to POSIX path of eachItem
do shell script "chmod -R 777 " & quoted form of filePath
end repeat
end adding folder items to
I have the file paths for “theFolder” which is the so called dumping ground and “theAddedItems” I just have as an empty string “” because the files are coming from various tapes and places. My question is what is the “filePath” and “eachItem” and how do I go about defining those objects?
Thanks in advance for the patience of dumb questions from an AppleScript newbie in a jam.