You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

请求恢复删除的com.apple.iChat脚本文件以修复iMessage AppleScript功能

Fixing iMessage's AppleScript Processor After Deleting the com.apple.iChat Folder

Hey there, sorry to hear you're stuck with iMessage not running AppleScript processors after accidentally deleting the /Users/wangcl/Library/Application Scripts/com.apple.iChat folder. Let's go through practical, step-by-step solutions tailored to your Mac Pro running Mac OS X 10.13 Public Beta:

1. Restore from Time Machine (Most Reliable if Enabled)

If you have Time Machine backups set up, this is the quickest way to get the folder back:

  • Open Finder and press Cmd + Shift + G, then paste /Users/wangcl/Library/Application Scripts/ and hit Enter to navigate to the parent directory.
  • Launch Time Machine (you can find it in Launchpad or via the menu bar icon if it's enabled).
  • Use the timeline on the right to jump to a backup date before you deleted the folder. Locate the com.apple.iChat folder in the list.
  • Select the folder and click the Restore button—Time Machine will place it back in its original location.

2. Copy from a Mac Running the Same OS Version

If you have access to another Mac also running Mac OS X 10.13 Public Beta:

  • On that Mac, use Cmd + Shift + G to open /Users/[their-username]/Library/Application Scripts/com.apple.iChat.
  • Copy the entire folder to a USB drive or send it via AirDrop to your Mac Pro.
  • Paste the folder into your /Users/wangcl/Library/Application Scripts/ directory.
  • Right-click the folder, select Get Info, and verify permissions: Ensure your user account (wangcl) has Read & Write access, while System and Admin are set to Read Only. Adjust if needed using the lock icon at the bottom of the Info window.

3. Manually Recreate the Folder Structure (No Backup/Other Mac Available)

If the above options aren't feasible, we can build the required structure manually via Terminal:

  1. Open Terminal (found in Launchpad > Other > Terminal).
  2. Run these commands one by one (press Enter after each):
    mkdir -p ~/Library/Application\ Scripts/com.apple.iChat
    chmod 755 ~/Library/Application\ Scripts/com.apple.iChat
    chown wangcl:staff ~/Library/Application\ Scripts/com.apple.iChat
    
  3. Restart your Mac Pro, then launch iMessage to test if AppleScript functionality is restored.

Verify the Fix

To make sure everything works, test with a simple AppleScript in Script Editor:

  • Open Script Editor (Launchpad > Other > Script Editor).
  • Paste this test script (replace "your-contact-id" with an actual contact from your Messages app):
    tell application "Messages"
        send "AppleScript test successful!" to buddy "your-contact-id"
    end tell
    
  • Click the run button. If the message sends without errors, your iMessage AppleScript processor is back up and running.

内容的提问来源于stack exchange,提问作者ChenLin Wang

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 09:19:17