Skip to content

Commit

Permalink
fix: add NSAppleEventsUsageDescrip to info.plist to fix NSAppleScript…
Browse files Browse the repository at this point in the history
… unauthorized error (#669)

* fix: add NSAppleEventsUsageDescrip to info.plist to fix unauthorized error

* fix: add missing InfoPlist.xcstrings
  • Loading branch information
tisfeng authored Sep 7, 2024
1 parent d609e34 commit b50add3
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
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

0 comments on commit b50add3

Please sign in to comment.