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: Charles Arthur <email@hidden>
- Date: Wed, 3 Jan 2001 23:28:40 +0000
On Tue, 02 Jan 2001 13:32:37 -0900 nellA hciR <email@hidden> wrote:
..
>
-- -----
>
-- 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
More elegantly, "set locked of anItem to true". You've already created
"aList" in which the items are files.
Charles
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...