• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
plist and AppleScript [WAS: Scripting]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

plist and AppleScript [WAS: Scripting]


  • Subject: plist and AppleScript [WAS: Scripting]
  • From: "Daniel A. Shockley" <email@hidden>
  • Date: Sun, 2 Mar 2003 19:04:05 -0500

Hello,

I've had some wrestling with PLists and AppleScript (not using Studio!) lately. I wrote a handler to convert a PList array of dictionaries into an AppleScript list of records. May come in handy for those working with PLists. I needed this for the script I wrote for the excellent Big Cat context menu plugin <http://www.ranchero.com/bigcat>. My script, called WebSearches, is at <http://www.danshockley.com/bigcat.php>. I both write and read from my own PList file in that script. The thing to remember is that, AFAICT, regular AppleScript scripts cannot use the 'user defaults' commands available to AppleScript Studio. That leaves you with the shell command 'defaults' to read and write data. The fun thing is that data is returned as a string, which you then (in the case of an array) have to turn into AppleScript lists. Enjoy!

Subject: Re: Scripting
Cc: "David R. Pierce" <email@hidden>
To: email@hidden
From: James Burns <email@hidden>

Look up user defaults property in the AppleScript Terminology Reference
PDF. Very useful.

Another way you can write to a plist file is by using the terminal
command "default." Do a "man default" in the terminal for more info.

--
----
Daniel A. Shockley
email@hidden
email@hidden
http://www.danshockley.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: URL Access Scripting
  • Next by Date: Re: -Logouthook
  • Previous by thread: Re: URL Access scripting
  • Next by thread: Re: plist and AppleScript [WAS: Scripting]
  • Index(es):
    • Date
    • Thread