パッケージしてインストール

ドロップしたフォルダに'.wdgt'をつけて、dashboardにインストールする。
やっつけ

on open theList
  set thePath to POSIX path of (item 1 of theList as string)
  set theSrc to thePath
  
  set tmp to AppleScript's text item delimiters
  set AppleScript's text item delimiters to "/"
  set theList to every text item of thePath
  set AppleScript's text item delimiters to tmp
  set thePath to ""
  repeat with theItem in theList
    set theStr to theItem as string
    if theStr as string is not equal to "" then
      set thePath to thePath & "/" & theStr
    end if
  end repeat
  set thePath to thePath & ".wdgt"
  set theCmd to "cp -rf " & theSrc & space & thePath
  --display dialog theCmd
  do shell script (theCmd)
  do shell script ("open " & thePath)
end open