Guest User

Untitled

a guest
May 26th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. tell application "System Events"
  2. set the parent_dictionary to make new property list item with properties {kind:record}
  3. set the plistfile_path to "~/Desktop/MY_DATA.plist"
  4. set this_plistfile to ¬
  5. make new property list file with properties {contents:parent_dictionary, name:plistfile_path}
  6. make new property list item at end of property list items of contents of this_plistfile ¬
  7. with properties {kind:string, name:"thename", value:theName}
  8. make new property list item at end of property list items of contents of this_plistfile ¬
  9. with properties {kind:string, name:"creationDate", value:creationDate}
  10. make new property list item at end of property list items of contents of this_plistfile ¬
  11. with properties {kind:string, name:"serialNumber", value:serialNumber}
  12. make new property list item at end of property list items of contents of this_plistfile ¬
  13. with properties {kind:string, name:"Email", value:fullEmail}
  14. make new property list item at end of property list items of contents of this_plistfile ¬
  15. with properties {kind:string, name:"IPAddress", value:IPAddress}
  16. end tell
  17.  
  18. set theName to "demo"
  19.  
  20. tell application "System Events"
  21. set the parent_dictionary to make new property list item with properties {kind:record}
  22. set the plistfile_path to "~/Desktop/MY_DATA.plist"
  23. set this_plistfile to ¬
  24. make new property list file with properties {contents:parent_dictionary, name:plistfile_path}
  25. make new property list item at end of property list items of contents of this_plistfile ¬
  26. with properties {kind:string, name:"thename", value:theName}
  27.  
  28. end tell
Add Comment
Please, Sign In to add comment