0
ファイルを特定のフォルダに保存するにはどうすればよいですか?Microsoft Word文書を特定のFinderフォルダに保存するには、どのようにAppleScriptを使用しますか?
私はドキュメントを作成するスクリプトを持っていますが、私が望む場所にファイルを保存する方法はまだ分かりません。関連するコードは次のとおりです。
tell application "Microsoft Word"
activate
tell active document
save as file name SaveName
end tell
end tell
これで、ファイルはユーザーのDocumentsフォルダに保存されます。特定の場所に保存するように伝える簡単な方法が必要なような気がしますが、これまでに検索し試したことはすべてその答えにつながっていません。あなたは
set desktopFolder to path to desktop as text
tell application "Microsoft Word"
activate
tell active document
save as file name (desktopFolder & SaveName)
end tell
end tell
path to desktop as text
にデスクトップフォルダにファイルを保存したい場合は例えば完全なパスを渡す必要が