Re: Newie To AppleScripts, would like someone to look over a script
Re: Newie To AppleScripts, would like someone to look over a script
- Subject: Re: Newie To AppleScripts, would like someone to look over a script
- From: nellA hciR <email@hidden>
- Date: Tue, 02 Jan 2001 13:32:37 -0900
-- to un/lock a file by name
tell application "Finder"
set locked of file "name" to true -- locked
set locked of file "name" to false -- unlocked
end tell
-- -----
-- for every file in the specified folder
tell application "Finder"
set aList to every file in folder "HD:Desktop Folder:folder"
repeat with anItem in aList
set locked of file (anItem as string) to true
end repeat
end tell
-- hcir
>
Hello, my name is Micah, and i am brand new (today) to applescripts, but, i
>
am a fast learner, and i want to know how to lock items with a script. I
>
would also like to know, if there is a group of files you want to lock, in a
>
folder, how you lock them all at once, or use a script to lock all of them
>
even if you don't have thier names.