我想8小時添加到日期(從剪貼板)的AppleScript(或SWIFT)添加小時時間
set date1 to the clipboard
set newdate to date1 + (8 * hours)
display dialog "Purchases were downloaded at " & newdate buttons {"OK"} default button 1
但預期這不工作,我有錯誤 Can’t make "06/22/2015 08:15:27 " into type number.
如何與斯威夫特這個問題? – LaX