• 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: Property List Tools osax with Framework Foundation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property List Tools osax with Framework Foundation


  • Subject: Re: Property List Tools osax with Framework Foundation
  • From: Denis Boyd <email@hidden>
  • Date: Mon, 15 May 2017 13:56:02 +0100

Title: VengaSignatureTemplate
Emmanuel,

I have looked at it before but not for handling plists. I've just looked a the dictionary now and it looks very promising.

Thanks for the suggestion!
Denis


On 15/05/2017 13:27, Emmanuel Lévy wrote:
Denis,

Since you’re using an osax, did you try XMLLib.osax?

I think it’s available at satimage.fr.

All the best!
Emmanuel

On 12 May 2017, at 19:42, Denis Boyd <email@hidden> wrote:

I'm using the Mark Aldritt's Property List Tools osax, but when there is a use framework "Foundation" statement the store property list statement fails. Error: Can't make some data into the expected type. Expected type: 'cobj'

This works:
use AppleScript version "2.4"
use scripting additions

store property list {myvalue:"the value"} in file "Macintosh HD:Users:[username]:Library:Preferences:com.myPlist.plist"

But this doesn't:
use AppleScript version "2.4"
use framework "Foundation"
use scripting additions

store property list {myvalue:"the value"} in file "Macintosh HD:Users:[username]:Library:Preferences:com.myPlist.plist"


 Does anyone have a workaround for this?
TIA
Denis

_______________________________________________
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
 _______________________________________________
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

 _______________________________________________
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

References: 
 >Property List Tools osax with Framework Foundation (From: Denis Boyd <email@hidden>)
 >Re: Property List Tools osax with Framework Foundation (From: Emmanuel Lévy <email@hidden>)

  • Prev by Date: Re: Property List Tools osax with Framework Foundation
  • Next by Date: 10.12.5 at work.
  • Previous by thread: Re: Property List Tools osax with Framework Foundation
  • Next by thread: NSArray from an AS list of lists or records
  • Index(es):
    • Date
    • Thread