Log Command
Log Command
- Subject: Log Command
- From: Rob Jorgensen <email@hidden>
- Date: Mon, 29 Jan 2001 15:14:01 -0500
Howdy :-)
Can someone tell me what the "log" command does in the following
script? I can't seem to locate the command in any osax or library and
I've never seen it used before. The script is activated via a
contextual menu (it came with the latest version of FinderPop) and it
toggles the lock status of the selected files.
tell application "Finder"
activate
set theSel to every file of selection
if theSel is {} then
beep
display dialog "No files are selected." buttons {"Cancel"} default button 1
end if
log theSel
set numItems to count of theSel
repeat with ix from 1 to numItems
try
set theItem to item ix of theSel
log theItem
set the locked of theItem to not (get the locked of theItem)
update theItem
end try
end repeat
end tell
Thanks for any info you might offer.
Later,
Rob Jorgensen
Ohio, USA