■スレッドリストへ戻る■ 全部 1- 101- 201- 301- 401- 最新50

Script 道場 rev.2

395 :にゃあ :02/11/19 21:36
>>390のスクリプトは、OS8.6だと誤動作を起こすにゃあ
every folder of desktopがevery container of desktopと同義になってしまうからだにゃあ
Finder側かAppleScript側のバグだにゃあ
書き換えておくにゃあ

property A0 : {}
property A1 : {}
property B : {}

on open
with timeout of 8000000 seconds
tell application "Finder"
set {A0, B} to {{}, {}}
repeat with A2 in (every container of desktop)
set {A3, A4} to {{}, every character of (A2 as string)}
repeat with A5 from 1 to (count A4)
set A5 to item A5 of A4
if A5 = ":" then set A3 to A3 & A5
end repeat
if (count A3) > 1 then set A0 to A0 & A2
end repeat
set A0 to A0 & every file of desktop
set A1 to count A0
repeat with A2 in A0
set B to B & ((position of A2) as list)
end repeat
display dialog (A1 as string) & " items are on desktop now." with icon note buttons {"OK"} default button 1
end tell
end timeout
end open

100KB
新着レスの表示

スレッドリストへ戻る 全部 前100 次100 最新50

0ch BBS 2004-10-30