Hello again !
Following code works just fine when ran locally on my machine but when creating a SMB share of the same folder and then trying to apply it
property ranbefore : false property topfolder : 0
if ranbefore = false then
set choosefolder to choose folder with prompt "Please select topfolder?"
set toppmapp to POSIX path of choosefolder
set ranbefore to true
else
set scripttorun to "chflags -R uchg " & toppmapp
with timeout of 600 seconds
do shell script scripttorun
end timeout
end if
When selecting the "local" path "/Volumes/Slask/Toppmapp/ it works just like fine, locks down files/folders amazingly fast but when choosing the SMB mounted path "SMB://localhost/TEST" (test is the smbsharename), points to "/Volumes/Slask/Toppmapp/" it seems to do something but the files/folders remain unlocked... is this due to the SMB thing or am i missing something here...!?
Best regards, Stefan |