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

Property List Tools osax with Framework Foundation


  • Subject: Property List Tools osax with Framework Foundation
  • From: Denis Boyd <email@hidden>
  • Date: Fri, 12 May 2017 18:42:58 +0100

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

  • Follow-Ups:
    • Re: Property List Tools osax with Framework Foundation
      • From: Emmanuel Lévy <email@hidden>
    • Re: Property List Tools osax with Framework Foundation
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Skim
  • Next by Date: Re: Property List Tools osax with Framework Foundation
  • Previous by thread: Re: Skim
  • Next by thread: Re: Property List Tools osax with Framework Foundation
  • Index(es):
    • Date
    • Thread