的Mac OS的应用程序我是新来了Xcode作为以及我对AppleScript的基于AppleScript的
所有我需要的是在Xcode应用程序运行AppleScript。这可能吗 ?
Bassically,下载应用软件从Excel中的一个URL列表图片和重命名这些文件acording在Excel
名单提前谢谢! 来自德国的问候!
这里是AppleScript的代码:
tell application "Microsoft Excel"
set filenames to value of every cell of range "K3:K200" of sheet "Image_Moves" of document 1
set URLs to value of every cell of range "L3:L200" of sheet "Image_Moves" of document 1
end tell
repeat with i from 1 to count URLs
if (item i of filenames is not missing value) and (item i of URLs is not missing value) then
set thisFname to quoted form of (POSIX path of ({path to desktop, "Image_Moves:"} as text) & item i of filenames)
set thisUrl to quoted form of item i of URLs
set status to (do shell script "curl -s -o " & thisFname & space & thisUrl)
end if
end repeat
try
tell application "Finder"
delete (every item of folder ("Image_Moves") whose name begins with "0")
end tell
on error
display dialog ("Error. Couldn't Move the File") buttons {"OK"}
end try
不清楚你的问题是什么。它与Xcode有什么关系?什么是Xcode应用程序? – Eiko
Eiko,我有一个Applescript的版本,我想把它变成一个Mac OS的应用程序。它与Xcode有什么关系?好吧,从我所知道的,你可以用X-Code来做到这一点,对吧? – AnotherUser31