• 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
Unlocking files in the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unlocking files in the Finder


  • Subject: Unlocking files in the Finder
  • From: Emmett Gray <email@hidden>
  • Date: Sat, 23 Mar 2002 11:58:23 -0500

I'm trying to write a script to unlock files. I can find the locked files and show them, but I can't seem to unlock them. AS 1.6/Standard Additions 1.6, OS 9.2.2.

tell application "Finder"
repeat with theItem in fileList
set theItem to theItem as string
if the locked of alias theItem is true then
display dialog "this one locked: " & theItem -- correctly displays locked files
set the locked of alias theItem to false -- this produces an error
end if
end repeat
end tell

TIA for help
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Unlocking files in the Finder
      • From: Jean-Marie Hoornaert <email@hidden>
  • Prev by Date: Thank you.
  • Next by Date: Re: Unlocking files in the Finder
  • Previous by thread: Thank you.
  • Next by thread: Re: Unlocking files in the Finder
  • Index(es):
    • Date
    • Thread