Re: Unlocking files in the Finder
Re: Unlocking files in the Finder
- Subject: Re: Unlocking files in the Finder
- From: Jean-Marie Hoornaert <email@hidden>
- Date: Sat, 23 Mar 2002 18:16:21 +0100
Le samedi 23 mars 2002 a 11:58, Emmett Gray ecrit :
>
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
On my MacOS 9.1 with AS 1.6, it works fine.
But only with files, not with folders.
Are you sure you only have files in "fileList".
--
French is my first language, Dutch my second and ...
AppleScript my third.
Cordialement (cordially)
____________________
Jean-Marie -HOO;-)
____________________
Jean-Marie Hoornaert
email@hidden
http://www.h2o.be
Newsletter : email@hidden?subject=Infos_h2o
AppleScripting FileMaker
French web site
_______________________________________________
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.