情况是是这样的,我在参加一场hackathon....还有一个小时多结束比赛。
我的作品是需要写了一个Applescript脚本,用于把当前的Keynote打开的文件导出成JPEG图片序列。
可惜对Applescript不太熟,写了如下的东西:
on isRunning(appName)
tell application "System Events" to (name of processes) contains appName
end isRunning
repeat until isRunning("Keynote")
end repeat
tell application "Keynote"
repeat
try
get the name of front document
exit repeat
on error errorMessage number errorNumber
end try
end repeat
end tell
tell application "Keynote"
export documents as slide images to (path to the desktop) with properties {image format:JPEG, skipped slides:true, compression factor:1.0}
end tell
接下来可好了:
我桌面上100G+的东西全没了...包括写的代码...(还有一个礼拜就要交数据结构课设了卧槽)
而刚好TimeMachine让我重建备份,重建到一半就出来参加hacktation了。
苹果售后让我找开发者服务,而开发者服务现在不上班。
悲伤!
求拯救,回复都感谢...
我的作品是需要写了一个Applescript脚本,用于把当前的Keynote打开的文件导出成JPEG图片序列。
可惜对Applescript不太熟,写了如下的东西:
on isRunning(appName)
tell application "System Events" to (name of processes) contains appName
end isRunning
repeat until isRunning("Keynote")
end repeat
tell application "Keynote"
repeat
try
get the name of front document
exit repeat
on error errorMessage number errorNumber
end try
end repeat
end tell
tell application "Keynote"
export documents as slide images to (path to the desktop) with properties {image format:JPEG, skipped slides:true, compression factor:1.0}
end tell
接下来可好了:
我桌面上100G+的东西全没了...包括写的代码...(还有一个礼拜就要交数据结构课设了卧槽)
而刚好TimeMachine让我重建备份,重建到一半就出来参加hacktation了。
苹果售后让我找开发者服务,而开发者服务现在不上班。
悲伤!
求拯救,回复都感谢...