Re: Property List Tools osax with Framework Foundation
Re: Property List Tools osax with Framework Foundation
- Subject: Re: Property List Tools osax with Framework Foundation
- From: Emmanuel Lévy <email@hidden>
- Date: Mon, 15 May 2017 14:27:40 +0200
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