Jag undrar hur man ändrar färgetikett på alla filer i en katalog som man fått genom en folder action (kallas när mitt fönster stängs).
Såhär ser koden ut nu: (den fungerar inte, list folder verkar bara göra en lista med strängar)
on closing folder window for this_folder
tell application "Finder"
set these_items to list folder this_folder without invisibles
set item_count to the number of items in the these_items
repeat with x from item_count to the 1 by -1
set label index of (item x of these_items) to 4
end repeat
end tell
end closing folder window for
Jag kan inte se Finder i scripteditors dictionary heller, inget händer.