10.4: Use an auto-generated plist file with AppleScript
Jul 10, '06 07:30:00AM • Contributed by: mark hunte
Jul 10, '06 07:30:00AM • Contributed by: mark hunte
While helping out in this thread on the AppleScript.net site, wheerin the original poster wanted to store some prefs in an AppleScript application, I discovered that when I ran the app which would write to a homemade .plist file, I noticed a second file in the user's Preferences folder.
This second .plist file turned out to be an automatically-created plist file, generated by the system. It had entries for recent items and some more odds and ends.
So now when you need to write out to a plist from an AppleScript application, you can use this prefs file to write to. This example from the thread shows how it works.
[robg adds: The test script seems to work, but this is probably of the most use to the dedicated AppleScript programmers out there, as opposed to the occasional muddlers like myself.]
This second .plist file turned out to be an automatically-created plist file, generated by the system. It had entries for recent items and some more odds and ends.
So now when you need to write out to a plist from an AppleScript application, you can use this prefs file to write to. This example from the thread shows how it works.
[robg adds: The test script seems to work, but this is probably of the most use to the dedicated AppleScript programmers out there, as opposed to the occasional muddlers like myself.]
•
[8,560 views]
