Demo contest?

Posts: 509
Joined: 2002.09
Post: #16
Paste this in ScriptEditor

tell application "Finder"
    set dl to items of desktop
end tell

set dl to dl as list
set x to count items of dl
set i to 1

repeat while i ≤ x
    tell application "Finder"
        select item (get item i of dl as string)
    end tell
    delay 0.1
    set i to i + 1
end repeat

Save script as Test.scpt (or any other name) and save

Launch Terminal and type

osascript path_to_Test.scpt

Change path_to_Test.scpt to the path of the saved script (obviously)

Have fun, 8kb, though not a real UB...

"When you dream, there are no rules..."
Quote this message in a reply
Post Reply