Unlocking items [was: Re: File/folder name cleanup droplet]
Unlocking items [was: Re: File/folder name cleanup droplet]
- Subject: Unlocking items [was: Re: File/folder name cleanup droplet]
- From: Brett Conlon <email@hidden>
- Date: Thu, 17 Aug 2006 18:18:51 +1100
Many thanks for the script update, kai
- you're a god-send! I'm trawling through it to see how you did it.
I did run across one issue, though.
When testing it on a folder of files it failed part way through because
a file with incorrect characters was locked.
So in an attempt to fix this in the
script you sent me, I decided to add a shell script command.
For testing purposes I wrote this:
to
run
process_items
from navchoose object with prompt ¬
"Choose folders or files to check/rename:"
with
multiple files
end
run
to
process_items from itemlist
tell
application "Finder" to
repeat
with
currItem in
itemlist
log class of
currItem
set
UnlockIt to
quoted form of
(POSIX path of
(currItem))
do shell script "chflags -R nouchg "
& UnlockIt
end
repeat
end
process_items
But it just won't unlock the file which
is sitting on my OSX Server and even if I try to run the following command
in Terminal it still won't unlock the file:
sudo chflags -R nouchg the_file_path
If I copy the file locally the unlocking
works. If I use the utility "Locker/Unlocker.app" it unlocks
the file on the server.
Anyone know what code is being used
by this app to get the job done?
Cheers,
Coj <just when one door closes
another opens> _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden