「お昼の放送」の思い出

初心者です、以下の文で、デスクトップにある test.txt というファイルをアプリケーションフォルダーにある test というフォルダーに移動させたいのですが、エラーが出ます。
------------------------------
tell application "Finder"
set tgtFile to file "test.txt" of desktop
move tgFile to folder "test" of applications folder with replacing
end tell
------------------------------
エラー文
error "folder \"test\" of applications folder を取り出すことはできません。" number -1728 from «class cfol» "test" of At Ease applications folder
------------------------------
しっかりアプリケーションフォルダーにtestというファイルはあります。
改善法を教えてください<(_ _)>

A 回答 (2件)

applications folder はちゃんと AppleScript 内で定義されています。


http://docs.info.apple.com/jarticle.html?path=Ap …

folder "test" of applications folder

folder "test" of (path to applications folder)
とすれば動作するはずです。
    • good
    • 0
この回答へのお礼

できました、ありがとうございました

お礼日時:2009/10/11 20:19

「applications folder」を「folder "Applications" of startup disk」にしてください。


ようするに「applications folder」は定義されていないということなんでしょう。
    • good
    • 0
この回答へのお礼

できました、ありがとうございました

お礼日時:2009/10/11 20:19

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!