Help about plist
Help about plist
- Subject: Help about plist
- From: KOENIG Yvan <email@hidden>
- Date: Wed, 1 Oct 2008 21:20:02 +0200
Hello
I wrote this script to copy an array from the Pages plist to the
Numbers one.
It fails when I try to write the new plist on disk.
May you help me ?
-- [SCRIPT]
set p2p to path to preferences from user domain as text
set plistPages to p2p & "com.apple.iWork.Pages.plist"
set plistNumbers to p2p & "com.apple.iWork.Numbers.plist"
tell application "System Events"
set plistRec to (value of property list file plistPages)
set theDico to |kSFWPAutoSubstitutionArrayProperty| of plistRec
set plistRecN to (value of property list file plistNumbers)
set |kSFWPAutoSubstitutionArrayProperty| of plistRecN to theDico
set the plistfile_path to "~/desktop/newplist.plist"
set this_plistfile to make new property list file with properties
{name:plistfile_path, value:plistRecN}
end tell
-- [/SCRIPT]
I'm running 10.4.11
Thanks in advance
Yvan KOENIG (from FRANCE mercredi 1 octobre 2008 21:18:41)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden