• 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
Help about plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Help about plist
      • From: Axel Luttgens <email@hidden>
    • Re: Help about plist
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: adding a printer via script
  • Next by Date: Re: Help about plist
  • Previous by thread: Re: Problem Scripting the Script Editor
  • Next by thread: Re: Help about plist
  • Index(es):
    • Date
    • Thread