0
set targetMessage to "Laptop logged in at" + timestamp
tell application "Messages"
set targetService to 1st service whose service type = iMessage
set targetBuddy to buddy targetBuddyPhone of targetService
send targetMessage to targetBuddy
end tell
我收到一條錯誤消息:如何在AppleScript中將字符串與日期編號組合?
error "Can’t make \"Laptop logged in at\" into type number." number -1700 from "Laptop logged in at" to number
這工作。我感謝你的幫助。 @jweaks。 –