Demo contest?

Moderator
Posts: 508
Joined: 2002.09
Post: #16
Paste this in ScriptEditor

Code:
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

Code:
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