makcreate文件夹移动文件- Applescript



我正在寻找:

  1. 从桌面移动文件夹

    1。创建一个文件夹,设置jobName为返回的文本(显示对话框"Please enter Job Name:"默认答案"Job_Name")

    1 b。在内从桌面删除文件夹,在newfo创建新文件夹,属性为{name:" email "}

脚本:

set jobName to text returned of (display dialog "Please enter Job Name:" default     answer "Job_Name")
set loc to choose folder "Choose Parent Folder Location"
tell application "Finder"
set home_path to home as text
set source to alias (home_path & "Desktop:WorkingFolder")
set newfo to make new folder at loc with properties {name:jobName}
    make new folder at newfo with properties {name:"Emails"}
set destination to home_path & jobName
tell application "Finder" to duplicate source to destination with replacing
end tell

任何帮助都会很感激。谢谢你,

这是你想要达到的目标吗?

    set jobName to text returned of (display dialog "Please enter Job Name:" default answer "Job_Name")
set loc to choose folder with prompt "Choose Parent Folder Location"
tell application "Finder"
    set source to alias ((path to desktop as text) & "WorkingFolder:")
    set newfo to make new folder at loc with properties {name:jobName}
    make new folder at newfo with properties {name:"Emails"}
    set destination to make new folder at (path to home folder) with properties {name:jobName}
    tell application "Finder" to duplicate source to destination with replacing
end tell

相关内容

  • 没有找到相关文章

最新更新