AppleScript 读写plist文件

简介: --构建完整路径set filePath to ("" & (path to library folder from user domain) & "Preferences" & ":com.

--构建完整路径

set filePath to ("" & (path to library folder from user domain) & "Preferences" & ":com.eusoft.eudic.plist")

--转为unix路径

set plistPath to POSIX path of filePath

tell application "System Events"

--方法一

(*

tell property list file plistPath

set value of property list item "MAIN_TimesLeft" to "820711"

end tell

*)

--方法二

set plist to property list file plistPath

set value of property list item "MAIN_TimesLeft"of plist to "820711"

end tell

目录
相关文章
|
5月前
|
人工智能 BI
文件的读写
文件的读写。
23 0
|
1月前
|
存储 C++ iOS开发
C++文件操作(文本文件的读写+二进制文件的读写)
C++文件操作(文本文件的读写+二进制文件的读写)
|
计算机视觉 索引 Windows
视频操作_01视频读写:视频读写+读取视频+保存视频
在OpenCV中我们要获取一个视频,需要创建一个VideoCapture对象
139 0
|
C#
C#选择多个文件并读取多个文件数据
原文:C#选择多个文件并读取多个文件数据 版权声明:本文为博主原创文章,转载请附上链接地址。 https://blog.csdn.net/ld15102891672/article/details/80586097 ...
1474 0