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

Re: Help about plist


  • Subject: Re: Help about plist
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 2 Oct 2008 13:21:52 +0200

Le 1 oct. 08 à 21:20, KOENIG Yvan a écrit :

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]
[...]
-- [/SCRIPT]

I'm running 10.4.11

Hello Yvan,

As Shane already noticed, the Property List Suite received R/W capabilities with Leopard.

But perhaps could you make use of the defaults commands.
The basic idea would be:

do shell script "K=`defaults read com.apple.iWork.Pages kSFWPAutoSubstitutionArrayProperty`; defaults write com.apple.iWork.Numbers kSFWPAutoSubstitutionArrayProperty \"$K\""

But as always in such cases, please check and double check... ;-)
And be sure to have quit Numbers and to have taken a copy of its plist before trying the above.


HTH,
Axel _______________________________________________
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: KOENIG Yvan <email@hidden>
References: 
 >Help about plist (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Keynote AppleScripting
  • Next by Date: Re: Help about plist
  • Previous by thread: Re: Help about plist
  • Next by thread: Re: Help about plist
  • Index(es):
    • Date
    • Thread