• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newie To AppleScripts, would like someone to look over a script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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...


  • Prev by Date: Re: More about Records
  • Next by Date: Font Testing - TOO slow.( Efficiency experts needed)
  • Previous by thread: Re: Newie To AppleScripts, would like someone to look over a script
  • Next by thread: more on records, properties and labels
  • Index(es):
    • Date
    • Thread