set x to (the clipboard as text)
tell application "Finder"
set y to front window
repeat with i from 1 to number of items in y
set this_item to item i of y
set nx to the name of this_item
try
set g to (characters 1 thru 3 of nx) as text
on error
set g to (characters 1 thru 2 of nx) as text
end try
if g is in x then
set the label index of this_item to 1
end if
end repeat
end tell
_________________________________________________________________
My script is not perfect. Grunt!
Anyone knows how do, to adjust the lines above ?
Routine:
1) write initials of all desired items to mark (in the Qs-text-window)
2) select and copy this text, tab
3) execute the script (via trigger)
> this script sorts items in front window with the orange label (it fiters only
> these files, where name begins with a minimum of 2 or 3 initial letters)
QUESTION
________________________________________________________________
Exists one way to send the text imput directly to Qs ? (without step
2!)
its tedious to repeat step 2
________________________________________________________________
i write from Italy...