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