【发布时间】:2015-06-03 15:11:30
【问题描述】:
我正在寻找:
-
从桌面移动文件夹
1a。创建一个文件夹,将作业名称设置为返回的文本(显示对话框“请输入作业名称:”默认答案“作业名称”)
1b。将文件夹从桌面放到 使用属性 {name:"Emails"} 在 newfo 处创建新文件夹
脚本:
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
任何帮助将不胜感激。谢谢,
【问题讨论】:
标签: file makefile applescript directory