初心者です、以下の文で、デスクトップにある 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というファイルはあります。
改善法を教えてください<(_ _)>
No.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)
とすれば動作するはずです。
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
関連するカテゴリからQ&Aを探す
おすすめ情報
- ・漫画をレンタルでお得に読める!
- ・14歳の自分に衝撃の事実を告げてください
- ・架空の映画のネタバレレビュー
- ・「お昼の放送」の思い出
- ・昨日見た夢を教えて下さい
- ・ちょっと先の未来クイズ第4問
- ・【大喜利】【投稿~10/21(月)】買ったばかりの自転車を分解してひと言
- ・メモのコツを教えてください!
- ・CDの保有枚数を教えてください
- ・ホテルを選ぶとき、これだけは譲れない条件TOP3は?
- ・家・車以外で、人生で一番奮発した買い物
- ・人生最悪の忘れ物
- ・【コナン30周年】嘘でしょ!?と思った○○周年を教えて【ハルヒ20周年】
- ・ハマっている「お菓子」を教えて!
- ・最近、いつ泣きましたか?
- ・夏が終わったと感じる瞬間って、どんな時?
- ・10秒目をつむったら…
- ・人生のプチ美学を教えてください!!
- ・あなたの習慣について教えてください!!
- ・牛、豚、鶏、どれか一つ食べられなくなるとしたら?
- ・都道府県穴埋めゲーム
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
コマンドプロンプトで標準エラ...
-
echo "abc" >> test.txt で、先...
-
NULLの置き換えについて
-
xcopyで特定のファイルのみをコ...
-
バッチファイルで改行の出力
-
Linux(raspberry pi)でのcpコマ...
-
echoの出力の最後のスペースを...
-
リダイレクト >> を複数のファ...
-
コマンドにてテキストファイル...
-
【DOSコマンド】for の デリミ...
-
.txtって、縦書きにはならない...
-
【VBA】テキストファイルから特...
-
バッチファイルで特定の文字列...
-
コマンド実行結果を環境変数に...
-
ACCESSからテキストファイルへ...
-
FTPのバッチファイルで日付を引...
-
Diskpart のリダイレクトの質問...
-
SendToで全角スペースを含むパ...
-
linuxのjoinコマンドがうまくい...
-
ダウンロードするとメモ帳に表...
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
xcopyで特定のファイルのみをコ...
-
echo "abc" >> test.txt で、先...
-
echoの出力の最後のスペースを...
-
バッチファイル 指定行の切り出し
-
【VBA】テキストファイルから特...
-
バッチファイルで改行の出力
-
コマンドにてテキストファイル...
-
NULLの置き換えについて
-
バッチファイル 現在のフォルダ...
-
複数テキストファイル連結につ...
-
コマンドプロンプトで標準エラ...
-
コマンドプロンプトで相対パス...
-
【DOSコマンド】for の デリミ...
-
リダイレクト >> を複数のファ...
-
バッチファイルのfor文の使い方...
-
バッチコマンドの「set」で入力...
-
bashで、gotoのようなラベルに...
-
コマンドプロンプトでFTPでエラー
-
Diskpart のリダイレクトの質問...
-
.txtって、縦書きにはならない...
おすすめ情報