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


  • Follow-Ups:
    • Re: Newie To AppleScripts, would like someone to look over a script
      • From: Chris Nebel <email@hidden>
    • Re: Newie To AppleScripts, would like someone to look over a script
      • From: Micah <email@hidden>
References: 
 >Newie To AppleScripts, would like someone to look over a script (From: Micah <email@hidden>)

  • Prev by Date: Re: Chad, where art thou?
  • Next by Date: Re: Newie To AppleScripts, would like someone to look over a script
  • Previous by thread: Newie To AppleScripts, would like someone to look over a script
  • Next by thread: Re: Newie To AppleScripts, would like someone to look over a script
  • Index(es):
    • Date
    • Thread