我完全忘记了Xcode AppleScript应用程序。Xcode:读取plist数据并将它们显示为文本
基本上,应用程序将从plist文件读取值。
我的AppleScript来读取这个变量是
set the plistfile_path to "~/Desktop/example.plist"
tell application "System Events"
set p_list to property list file (plistfile_path)
-- read the plist data
set theNameFromPlist to value of property list item "theName" of p_list
set theEmailFromPlist to value of property list item "theEmail" of p_list
set thecreationDateFromPlist to value of property list item "creationDate" of p_list
end tell
现在我怎么这个集成到Xcode的?
我应该继续AppDelegate.applescript并在“applicationWillFinishLaunching_(aNotification)”这个脚本之后的任何地方添加吗?
followed by property NametextField : theNameFromPlist
我在这里可能完全错了,只是想不到。 PS迅速将做到这一点,如果任何容易
在Xcode中忘了'系统Events'和使用AppleScriptObjC中的原生Cocoa类。 – vadian