Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add NSAppleEventsUsageDescrip to info.plist to fix NSAppleScript unauthorized error #669

Merged
merged 2 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Easydict/App/Info-debug.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAppleEventsUsageDescription</key>
<string>Easydict requires permission to execute AppleScript.</string>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
Expand Down
2 changes: 2 additions & 0 deletions Easydict/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAppleEventsUsageDescription</key>
<string>Easydict requires permission to execute AppleScript.</string>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
Expand Down
48 changes: 48 additions & 0 deletions Easydict/App/InfoPlist.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
"value" : "Easydict"
}
},
"en-CA" : {
"stringUnit" : {
"state" : "translated",
"value" : "Easydict"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
Expand All @@ -35,6 +41,12 @@
"value" : "Easydict"
}
},
"en-CA" : {
"stringUnit" : {
"state" : "translated",
"value" : "Easydict"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
Expand All @@ -49,6 +61,36 @@
}
}
},
"NSAppleEventsUsageDescription" : {
"comment" : "Privacy - AppleEvents Sending Usage Description",
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "Easydict requires permission to execute AppleScript."
}
},
"en-CA" : {
"stringUnit" : {
"state" : "translated",
"value" : "Easydict requires permission to execute AppleScript."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "Easydict 需要权限来执行 AppleScript。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "Easydict 需要權限來執行 AppleScript。"
}
}
}
},
"NSHumanReadableCopyright" : {
"comment" : "Copyright (human-readable)",
"extractionState" : "extracted_with_value",
Expand All @@ -59,6 +101,12 @@
"value" : "Copyright © 2023-2024 tisfeng. All rights reserved."
}
},
"en-CA" : {
"stringUnit" : {
"state" : "translated",
"value" : "Copyright © 2023-2024 tisfeng. All rights reserved."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
Expand Down